From 4f998d267a00dc295b05df4a1a89454e699efcb9 Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Fri, 27 Sep 2024 09:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=20fast(=E9=85=8D=E7=BD=AE):=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E5=A4=A7=E5=B1=8Fiframe=E5=9C=B0=E5=9D=80token?= =?UTF-8?q?=E4=B8=BA=E5=8A=A8=E6=80=81=EF=BC=8C=E9=80=82=E9=85=8D=E9=95=BF?= =?UTF-8?q?=E5=9F=8E=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.cc | 5 +++++ .env.ccprod | 2 +- src/views/bigScreenIframe/index.vue | 6 +++--- src/views/iot/device/index.vue | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.env.cc b/.env.cc index e2052ba2..cb1e07ab 100644 --- a/.env.cc +++ b/.env.cc @@ -32,6 +32,11 @@ VUE_APP_THEME_CLASS = 'theme-grey-red' # 智慧用电管理系统/开发环境 VUE_APP_BASE_API = '/dev-api' +#平台大屏地址 +VUE_APP_BIGSCREEN_PLATFORM_URL = 'https://goview.drgyen.cn/#/chart/preview/202409111020297' +#项目大屏地址 +VUE_APP_BIGSCREEN_PROJECT_URL = '' + # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.ccprod b/.env.ccprod index 20f39d13..40f4e997 100644 --- a/.env.ccprod +++ b/.env.ccprod @@ -34,7 +34,7 @@ VUE_APP_THEME_CLASS = 'theme-grey-red' VUE_APP_BASE_API = '/prod-api' #平台大屏地址 -VUE_APP_BIGSCREEN_PLATFORM_URL = 'https://goview.drgyen.cn/#/chart/preview/202409060982078' +VUE_APP_BIGSCREEN_PLATFORM_URL = 'https://goview.drgyen.cn/#/chart/preview/202409111020297' #项目大屏地址 VUE_APP_BIGSCREEN_PROJECT_URL = '' diff --git a/src/views/bigScreenIframe/index.vue b/src/views/bigScreenIframe/index.vue index 7cf130c9..e992982c 100644 --- a/src/views/bigScreenIframe/index.vue +++ b/src/views/bigScreenIframe/index.vue @@ -20,14 +20,14 @@ export default { let token = this.getCookie("Admin-Token"); let src = this.$store.getters.attributeInfo['bigScreenUrl']; if(src){ - return src + "?token=" + token || this.src; + return src + "?token=" + this.token || this.src; }else{ - return process.env.VUE_APP_BIGSCREEN_PLATFORM_URL + "?token=" + token; + return process.env.VUE_APP_BIGSCREEN_PLATFORM_URL + "?token=" + this.token; } }, }, created() { - // this.token = this.getCookie("Admin-Token"); + this.token = this.getCookie("Admin-Token"); // this.src = process.env.VUE_APP_BIGSCREEN_PLATFORM_URL + "?token=" + this.token; }, mounted() { diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index dc3fedfe..ba4557c3 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -133,7 +133,7 @@ > - +