处理上架刷新出现 异常的问题

This commit is contained in:
aixianling
2022-02-09 16:24:15 +08:00
parent 78e1eb4df4
commit 201d83a89c
3 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -35,11 +35,11 @@
"^/lan": "/"
}
},
"/saas": {
"/online": {
"target": "https://test87tpweb.cunwuyun.cn",
"changeOrigin": true,
"pathRewrite": {
"^/saas": "/"
"^/online": "/"
}
}
}

View File

@@ -75,7 +75,7 @@ export default {
},
changeConfig() {
this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" :
this.currentLib == "saas" ? "/saas" : "/"
this.currentLib == "saas" ? "/online" : "/"
}
},
onLoad() {