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 {