修复黔西南异常
This commit is contained in:
@@ -26,15 +26,15 @@ instance.interceptors.request.use(config => {
|
||||
} else if (/#url-/.test(location.hash)) {
|
||||
config.baseURL = location.hash.replace(/#url-/, '/')
|
||||
}
|
||||
if (["/omsapi"].includes(config.baseURL)) {
|
||||
config.url = config.url.replace(/(app|auth|admin|api)\//, "api/")
|
||||
}
|
||||
if (["/xsjr", "/tfx"].includes(config.baseURL)) {
|
||||
if (["/xsjr", "/tfx", "/omsapi"].includes(config.baseURL)) {
|
||||
config.url = config.url.replace(/(app|auth|admin|api)\//, "api/")
|
||||
}
|
||||
if (['/qxn', '/analysis'].includes(config.baseURL)) {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
if (process.env.VUE_APP_IS_SIMPLE_SERVER == 1) {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
return config
|
||||
}, error => Message.error(error))
|
||||
export default instance
|
||||
|
||||
@@ -929,7 +929,7 @@
|
||||
gridId: this.gridId || this.gridParentId
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res?.data) {
|
||||
this.wjwqgkInfo = res.data
|
||||
}
|
||||
})
|
||||
|
||||
@@ -53,7 +53,7 @@ export default {
|
||||
return ['#FFBA44', '#EC6666', '#FF3E18', '#C9FF82', '#29D7FA', '#ea7ccc']
|
||||
},
|
||||
chartOptions() {
|
||||
const {daemon} = this.$echartTpls[this.tpl]
|
||||
const {daemon = {}} = this.$echartTpls[this.tpl] || {}
|
||||
let {type, data, ops: options = {}} = this,
|
||||
style = this.series ? this.series : this.ops.daemon ? this.ops.daemon : {},
|
||||
colors = this.theme === '1' ? this.colors : (options.color || this.colors),
|
||||
|
||||
Reference in New Issue
Block a user