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