From cae7f69b8ba0b5e235d54da5192312a47522770a Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Fri, 30 Sep 2022 10:26:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4:=20=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=20=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=20=E5=AF=BC=E8=87=B4=E5=88=97=E8=A1=A8=E9=A1=B5=20ove?= =?UTF-8?q?rFlow=20hidden;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/project/profileV2/details.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/iot/project/profileV2/details.vue b/src/views/iot/project/profileV2/details.vue index 26b1ee29..9dbea85a 100644 --- a/src/views/iot/project/profileV2/details.vue +++ b/src/views/iot/project/profileV2/details.vue @@ -414,7 +414,17 @@ export default { this.projectTypeOptions = response.data; }); }, + destroyed() { + document.getElementById("con_lf_top_div").style.overflow = "auto"; + }, watch: { + $route(to, from) { + if (from.fullPath === '/project/project'){ + document.getElementById("con_lf_top_div").style.overflow = "auto"; + } else if (to.fullPath === '/project/project') { + document.getElementById("con_lf_top_div").style.overflow = "hidden"; + } + }, isFoldRight: { handler(newValue) { if (!newValue) {