c7c6dddb by 任超

feat:配置文件修改

1 parent 48d6b506
1 { 1 {
2 "TITLE": "汉中市数据上报系统", 2 "TITLE": "汉中市数据上报系统",
3 "THEME": "jg", 3 "THEME": "sb",
4 "SERVERAPI": "/bdcsjsb", 4 "SERVERAPI": "/bdcsjsb",
5 "MANAGEMENTAPI": "http://192.168.2.236/management" 5 "MANAGEMENTAPI": "http://192.168.2.38:8090/management"
6 } 6 }
...\ No newline at end of file ...\ No newline at end of file
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-03-24 15:07:01
5 -->
1 <template> 6 <template>
2 <div id="app"> 7 <div id="app">
3 <router-view /> 8 <router-view />
......
1 /* 1 /*
2 * @Description: 这个是所有api的前缀配置文件 2 * @Description: 这个是所有api的前缀配置文件
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-03-21 16:26:55 4 * @LastEditTime: 2023-03-24 16:51:18
5 */ 5 */
6 export default { 6 export default {
7 SERVERAPI: '/bdcsjsb', //赵千 7 SERVERAPI: '/bdcsjsb', //赵千
8 MANAGEMENTAPI: 'http://192.168.2.236/management' 8 MANAGEMENTAPI: 'http://192.168.2.38:8090/management'
9 } 9 }
...\ No newline at end of file ...\ No newline at end of file
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-03-24 13:47:33 4 * @LastEditTime: 2023-03-24 16:44:54
5 */ 5 */
6 import Vue from 'vue' 6 import Vue from 'vue'
7 export default function getTheme (theme = Vue.prototype.BASE_API.THEME) { 7 export default function getTheme (theme = Vue.prototype.BASE_API.THEME) {
8 const resultMap = { 8 const resultMap = {
9 'jg': function () { 9 'jg': function () {
10 import("@/styles/jgPublic.scss") 10 return import("@/styles/jgPublic.scss");
11 }, 11 },
12 'sb': function () { 12 'sb': function () {
13 import("@/styles/sbPublic.scss") 13 return import("@/styles/sbPublic.scss");
14 }, 14 },
15 default: function () { 15 'default': function () {
16 throw new Error(`Unsupported theme: ${theme}`);
16 }, 17 },
18 };
19 const result = resultMap[theme]();
20 if (result instanceof Promise) {
21 return result;
22 } else {
23 return resultMap.default();
17 } 24 }
18 return resultMap[theme]() || resultMap.default()
19 } 25 }
...\ No newline at end of file ...\ No newline at end of file
......