From 3a0433d77e9b09d9b0e111b28bfddd798009d02b Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Wed, 7 Sep 2022 15:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=20=E5=B1=95=E7=A4=BA=E7=BC=A9?= =?UTF-8?q?=E6=94=BEbug=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/project/profileV2/details.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/views/iot/project/profileV2/details.vue b/src/views/iot/project/profileV2/details.vue index 5d01d1fb..55aa1e40 100644 --- a/src/views/iot/project/profileV2/details.vue +++ b/src/views/iot/project/profileV2/details.vue @@ -310,6 +310,13 @@ export default { stateSourceId(val) { this.init() }, + opened: { + handler() { + this.resize_window_project(); + }, + deep: true, + immediate: true + } }, mounted() { // 计算缩放比例 @@ -321,6 +328,11 @@ export default { this.resize_window_project(); }); }, + computed: { + opened() { + return this.$store.getters.sidebar; + } + }, methods: { init() { this.getInfoByProjectId(); @@ -344,7 +356,7 @@ export default { Number(document.documentElement.clientWidth / this.divWidth) - (Cookies.get("sidebarStatus") !== "0" ? Number(240 / this.divWidth) - : Number(54 / this.divWidth)); + : Number(80 / this.divWidth)); } this.scalseNumY = Number( (document.documentElement.clientHeight - 125) / this.divHeight