From 89acace02a65a23751cb08bde44f01268fef349e Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 24 May 2023 18:54:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E6=A8=A1=E5=9D=97=E9=9A=90=E8=97=8F=E5=90=8E=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1026502 --user=陈建星 【测试跟踪】功能用例左侧模块伸缩功能不好使 https://www.tapd.cn/55049933/s/1375387 --- .../frontend/src/components/new-ui/MsAsideContainer.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/new-ui/MsAsideContainer.vue b/framework/sdk-parent/frontend/src/components/new-ui/MsAsideContainer.vue index 1e6fc267a5..bf5f861fba 100644 --- a/framework/sdk-parent/frontend/src/components/new-ui/MsAsideContainer.vue +++ b/framework/sdk-parent/frontend/src/components/new-ui/MsAsideContainer.vue @@ -108,9 +108,9 @@ export default { this.observer = new MutationObserver(() => { // 监听元素的宽度变化,保存在 localStorage 中 let width = getComputedStyle(element).getPropertyValue('width'); - localStorage.setItem(rememberKey, width); - // 这里宽度变化设置下默认宽度,否则页面有更新,会导致宽度变回到原来的默认宽度 if (!this.asideHidden) { + localStorage.setItem(rememberKey, width); + // 这里宽度变化设置下默认宽度,否则页面有更新,会导致宽度变回到原来的默认宽度 this.defaultWidth = width; } })