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