From 201d83a89c4f92ca3eef00e0e4dcb7af7c35bf67 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 9 Feb 2022 16:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=B8=8A=E6=9E=B6=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=87=BA=E7=8E=B0=20=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/axios.js | 2 +- src/manifest.json | 4 ++-- src/pages/loading.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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() {