From 3029d1e078875e31d06e7e4d8e007fea2f60c265 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Mon, 11 Mar 2024 10:31:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86=E5=85=B3=E8=81=94=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E5=9B=BE=E7=89=87=E6=9C=AA=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1036133 --user=王旭 【项目管理】应用管理,关联需求,预览不显示图片 https://www.tapd.cn/55049933/s/1472313 --- .../menuManagement/components/relatedCase.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue b/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue index 2bbd42e4ed..a8f8e8ed32 100644 --- a/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue +++ b/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue @@ -120,6 +120,14 @@ (e: 'cancel', shouldSearch: boolean): void; }>(); + const resetForm = () => { + formRef.value?.resetFields(); + platformItem.value = []; + platformRules.value = []; + formCreateValue.value = {}; + sessionStorage.removeItem('platformKey'); + }; + const handleCancel = (shouldSearch: boolean) => { emit('cancel', shouldSearch); sessionStorage.removeItem('platformKey'); @@ -136,7 +144,9 @@ } }); } + resetForm(); platformRules.value = res.formItems; + sessionStorage.setItem('platformKey', value as string); } else { platformRules.value = []; }