diff --git a/src/common/axios.js b/src/common/axios.js index 41599484..f80871ca 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -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, diff --git a/src/manifest.json b/src/manifest.json index e26342a3..e90ba4f7 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -35,11 +35,11 @@ "^/lan": "/" } }, - "/saas": { + "/online": { "target": "https://test87tpweb.cunwuyun.cn", "changeOrigin": true, "pathRewrite": { - "^/saas": "/" + "^/online": "/" } } } diff --git a/src/pages/loading.vue b/src/pages/loading.vue index 4595969d..3037446e 100644 --- a/src/pages/loading.vue +++ b/src/pages/loading.vue @@ -75,7 +75,7 @@ export default { }, changeConfig() { this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" : - this.currentLib == "saas" ? "/saas" : "/" + this.currentLib == "saas" ? "/online" : "/" } }, onLoad() {