diff --git a/src/common/axios.js b/src/common/axios.js index 3b9ee8f1..7150f0f0 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -13,6 +13,9 @@ instance.interceptors.request.use(config => { if (/AppCountryAlbum/.test(location.pathname)) { config.url = config.url.replace(/(app|auth|admin)\//, "api/") } + if (sessionStorage.getItem("prj") == "saas") { + config.url = config.url.replace(/(app|auth|admin)\//, "api/") + } if (!config.withoutToken && store.state.token) { config.headers["Authorization"] = store.state.token } diff --git a/src/manifest.json b/src/manifest.json index 702a78a6..ef7e18da 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -36,12 +36,19 @@ } }, "/online": { - "target": "https://test87tpweb.cunwuyun.cn", + "target": "https://test87xcxc.cunwuyun.cn", "changeOrigin": true, "pathRewrite": { "^/online": "/" } }, + "/api": { + "target": "https://test87xcxc.cunwuyun.cn", + "changeOrigin": true, + "pathRewrite": { + "^/api": "/api" + } + }, "/tmap": { "target": "https://apis.map.qq.com", "changeOrigin": true, diff --git a/src/saas/AppCountryAlbum/AddAlbum.vue b/src/saas/AppCountryAlbum/AddAlbum.vue index 7ad825dd..772d6f32 100644 --- a/src/saas/AppCountryAlbum/AddAlbum.vue +++ b/src/saas/AppCountryAlbum/AddAlbum.vue @@ -7,7 +7,7 @@ 相册名称