c7c6dddb by 任超

feat:配置文件修改

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