diff --git a/src/config/index.js b/src/config/index.js index 60eeeca..6a939b8 100644 --- a/src/config/index.js +++ b/src/config/index.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子系统 **/ diff --git a/src/main.js b/src/main.js index 8345754..8b2ef54 100644 --- a/src/main.js +++ b/src/main.js @@ -6,7 +6,27 @@ import ElementUI from 'element-ui' import util from '@/util' import '@/styles/index.scss'; const systemId = util.getCookie('systemId') -import('@/styles/theme/theme7.scss') +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,