处理上架刷新出现 异常的问题
This commit is contained in:
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
import store from '../store'
|
||||
|
||||
const baseURL = process.env.NODE_ENV === "production" ? "/" :
|
||||
sessionStorage.getItem("prj") == "saas" ? "/saas" : "/lan"
|
||||
sessionStorage.getItem("prj") == "saas" ? "/online" : "/lan"
|
||||
let instance = axios.create({
|
||||
baseURL,
|
||||
timeout: 600000,
|
||||
|
||||
@@ -35,11 +35,11 @@
|
||||
"^/lan": "/"
|
||||
}
|
||||
},
|
||||
"/saas": {
|
||||
"/online": {
|
||||
"target": "https://test87tpweb.cunwuyun.cn",
|
||||
"changeOrigin": true,
|
||||
"pathRewrite": {
|
||||
"^/saas": "/"
|
||||
"^/online": "/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ export default {
|
||||
},
|
||||
changeConfig() {
|
||||
this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" :
|
||||
this.currentLib == "saas" ? "/saas" : "/"
|
||||
this.currentLib == "saas" ? "/online" : "/"
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
Reference in New Issue
Block a user