fix(缺陷管理): 修复缺陷管理页面BUG
--bug=1043050 --user=宋昌昌 【缺陷管理】缺陷详情-用例-关联/取消关联用例-用例标签数量未实时更新 https://www.tapd.cn/55049933/s/1535952
This commit is contained in:
parent
bc045fb26a
commit
d655120f51
|
@ -390,7 +390,13 @@
|
||||||
|
|
||||||
const editLoading = ref<boolean>(false);
|
const editLoading = ref<boolean>(false);
|
||||||
|
|
||||||
|
async function getDetail() {
|
||||||
|
const res = await getBugDetail(props.detailId);
|
||||||
|
loadedBug(res);
|
||||||
|
}
|
||||||
|
|
||||||
function updateSuccess() {
|
function updateSuccess() {
|
||||||
|
getDetail();
|
||||||
emit('submit');
|
emit('submit');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,11 +547,6 @@
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getDetail() {
|
|
||||||
const res = await getBugDetail(props.detailId);
|
|
||||||
loadedBug(res);
|
|
||||||
}
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => showDrawerVisible.value,
|
() => showDrawerVisible.value,
|
||||||
(val) => {
|
(val) => {
|
||||||
|
|
|
@ -626,14 +626,15 @@
|
||||||
// 如果是保存并继续创建
|
// 如果是保存并继续创建
|
||||||
const { templateId } = form.value;
|
const { templateId } = form.value;
|
||||||
// 用当前模板初始化自定义字段
|
// 用当前模板初始化自定义字段
|
||||||
await templateChange(templateId);
|
|
||||||
form.value = {
|
form.value = {
|
||||||
projectId: appStore.currentProjectId, // 取当前项目id
|
projectId: appStore.currentProjectId, // 取当前项目id
|
||||||
title: '',
|
title: '',
|
||||||
description: '',
|
description: '',
|
||||||
templateId,
|
templateId,
|
||||||
tags: [],
|
tags: [],
|
||||||
|
platformSystemFields: {},
|
||||||
};
|
};
|
||||||
|
await templateChange(templateId);
|
||||||
// 清空文件列表
|
// 清空文件列表
|
||||||
fileList.value = [];
|
fileList.value = [];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue