fix: 样式微调

This commit is contained in:
张益铭
2021-03-29 19:10:02 +08:00
parent f07d3fef9f
commit fd387fe5cd
4 changed files with 39 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ export const getServerConfig = async (): Promise<any> => {
return axios({
baseURL: "",
method: "get",
url: (app.config.globalProperties.$baseUrl || "/") + "serverConfig.json"
url: process.env.NODE_ENV === 'production' ? "/manages/serverConfig.json" : "/serverConfig.json"
}).then(({ data: config }) => {
let $config = app.config.globalProperties.$config
// 自动注入项目配置