From 6f02be438ad6c2fe2e7e5ee54227851ef1137b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Tue, 2 Mar 2021 12:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E9=85=8D=E7=BD=AE=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E4=BA=91=E7=BD=91=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 6 +++--- src/pages/workbench/workPlace.vue | 5 ++++- static/config/configmap.js | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config/index.js b/config/index.js index d82e6e2..3b1177d 100644 --- a/config/index.js +++ b/config/index.js @@ -11,21 +11,21 @@ module.exports = { assetsPublicPath: "/apaas/ui/", proxyTable: { "/apaas": { - target: "https://apaas.test.wodcloud.com/apaas/", + target: "https://apaas3.wodcloud.com/apaas/", changeOrigin: true, pathRewrite: { "^/apaas": "" } }, "/awecloud": { - target: "https://apaas.test.wodcloud.com/awecloud/", + target: "https://apaas3.wodcloud.com/awecloud/", changeOrigin: true, pathRewrite: { "^/awecloud": "" } }, "/vmap": { - target: "https://apaas.test.wodcloud.com/vmap/", + target: "https://apaas3.wodcloud.com/vmap/", changeOrigin: true, pathRewrite: { "^/vmap": "" diff --git a/src/pages/workbench/workPlace.vue b/src/pages/workbench/workPlace.vue index 026f9b6..534b06b 100644 --- a/src/pages/workbench/workPlace.vue +++ b/src/pages/workbench/workPlace.vue @@ -353,6 +353,7 @@ import { mapGetters, mapState } from "vuex"; import { getCookie } from "../../services/cookie"; var echarts = require("echarts"); const state = window.serviceConfig.state; +const cloudServiceRoot = window.serviceConfig.cloudServiceRoot; export default { data() { return { @@ -1056,7 +1057,9 @@ export default { ...mapGetters(["level"]), ...mapState(["userInfo"]) }, - created() {}, + created() { + this.manage_arr[this.manage_arr.length - 1].url = cloudServiceRoot; + }, mounted() { console.log(this.level); if (this.userInfo) { diff --git a/static/config/configmap.js b/static/config/configmap.js index 58f3c3f..9cf3657 100644 --- a/static/config/configmap.js +++ b/static/config/configmap.js @@ -1,4 +1,5 @@ window.serviceConfig = { gisServiceRoot: 'https://apaasgis.wodcloud.com', - state: "needLogin" // needLogin / notNeedLogin + state: "needLogin", // needLogin / notNeedLogin + cloudServiceRoot: 'https://cloud4.wodcloud.com/awecloud/login/#/', }; \ No newline at end of file -- 2.26.0