多个系统id就取7,单个就不变

dev_2022-03-03 V2.3.0
yujialong 3 years ago
parent 8e8097923b
commit 47bee63237
  1. 5
      src/config/index.js
  2. 20
      src/main.js

@ -4,7 +4,8 @@ const isHh = location.host.includes('10.196.131.73') //是否是河海版本
const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试
let host = location.origin + ':9000/'
if (process.env.NODE_ENV === 'development') host = 'http://192.168.31.151:9000'
if (process.env.NODE_ENV === 'development') host = 'http://39.108.250.202:9000'
const systemId = util.getCookie('systemId')
/**
* python8个系统的id和名称
* id即systemId从cookie里取
@ -59,7 +60,7 @@ export default {
/**
* @description 系统主题色
*/
defaultSystem: 7,
defaultSystem: systemId.includes(',') ? 7 : systemId,
/**
* python子系统
**/

@ -6,7 +6,27 @@ import ElementUI from 'element-ui'
import util from '@/util'
import '@/styles/index.scss';
const systemId = util.getCookie('systemId')
if (systemId.includes(',')) {
import('@/styles/theme/theme7.scss')
} else {
if (systemId == 1) {
import('@/styles/theme/theme1.scss')
} else if (systemId == 4) {
import('@/styles/theme/theme4.scss')
} else if (systemId == 5) {
import('@/styles/theme/theme5.scss')
} else if (systemId == 6) {
import('@/styles/theme/theme6.scss')
} else if (systemId == 7) {
import('@/styles/theme/theme7.scss')
} else if (systemId == 8) {
import('@/styles/theme/theme8.scss')
} else if (systemId == 9) {
import('@/styles/theme/theme9.scss')
} else if (systemId == 10) {
import('@/styles/theme/theme10.scss')
}
}
import api from './api';
import {
post,

Loading…
Cancel
Save