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 @@ > - +