fix(项目管理): 应用管理关联需求图片未加载

--bug=1036133 --user=王旭 【项目管理】应用管理,关联需求,预览不显示图片 https://www.tapd.cn/55049933/s/1472313
This commit is contained in:
WangXu10 2024-03-11 10:31:29 +08:00 committed by Craftsman
parent ad7bcaa7cf
commit 3029d1e078
1 changed files with 10 additions and 0 deletions

View File

@ -120,6 +120,14 @@
(e: 'cancel', shouldSearch: boolean): void; (e: 'cancel', shouldSearch: boolean): void;
}>(); }>();
const resetForm = () => {
formRef.value?.resetFields();
platformItem.value = [];
platformRules.value = [];
formCreateValue.value = {};
sessionStorage.removeItem('platformKey');
};
const handleCancel = (shouldSearch: boolean) => { const handleCancel = (shouldSearch: boolean) => {
emit('cancel', shouldSearch); emit('cancel', shouldSearch);
sessionStorage.removeItem('platformKey'); sessionStorage.removeItem('platformKey');
@ -136,7 +144,9 @@
} }
}); });
} }
resetForm();
platformRules.value = res.formItems; platformRules.value = res.formItems;
sessionStorage.setItem('platformKey', value as string);
} else { } else {
platformRules.value = []; platformRules.value = [];
} }