From d655120f5167edfab03a78340dd46c454a6cfe43 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 25 Jun 2024 14:04:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1043050 --user=宋昌昌 【缺陷管理】缺陷详情-用例-关联/取消关联用例-用例标签数量未实时更新 https://www.tapd.cn/55049933/s/1535952 --- .../bug-management/components/bug-detail-drawer.vue | 11 ++++++----- frontend/src/views/bug-management/edit.vue | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index cb9476d6bf..d2ab206a2a 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -390,7 +390,13 @@ const editLoading = ref(false); + async function getDetail() { + const res = await getBugDetail(props.detailId); + loadedBug(res); + } + function updateSuccess() { + getDetail(); emit('submit'); } @@ -541,11 +547,6 @@ return data; } - async function getDetail() { - const res = await getBugDetail(props.detailId); - loadedBug(res); - } - watch( () => showDrawerVisible.value, (val) => { diff --git a/frontend/src/views/bug-management/edit.vue b/frontend/src/views/bug-management/edit.vue index f71f34a176..b33ef2a1cf 100644 --- a/frontend/src/views/bug-management/edit.vue +++ b/frontend/src/views/bug-management/edit.vue @@ -626,14 +626,15 @@ // 如果是保存并继续创建 const { templateId } = form.value; // 用当前模板初始化自定义字段 - await templateChange(templateId); form.value = { projectId: appStore.currentProjectId, // 取当前项目id title: '', description: '', templateId, tags: [], + platformSystemFields: {}, }; + await templateChange(templateId); // 清空文件列表 fileList.value = []; } else {