fix(用例管理): 修复用例评审详情页取消关联用例模块不刷新的问题

--bug=1040665 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001040665
This commit is contained in:
guoyuqi 2024-05-21 15:21:32 +08:00 committed by 刘瑞斌
parent 1c104344cc
commit 5eb5359a21
2 changed files with 8 additions and 1 deletions

View File

@ -559,7 +559,13 @@
try {
disassociateLoading.value = true;
await disassociateReviewCase(route.query.id as string, record.caseId);
emit('refresh', tableParams.value);
emit('refresh', {
...tableParams.value,
current: propsRes.value.msPagination?.current,
pageSize: propsRes.value.msPagination?.pageSize,
total: propsRes.value.msPagination?.total,
moduleIds: [],
});
if (done) {
done();
}

View File

@ -389,6 +389,7 @@
function handleRefresh(params: ReviewDetailCaseListQueryParams) {
initModulesCount(params);
initDetail();
folderTreeRef.value?.initModules();
}
const moduleTree = ref<ModuleTreeNode[]>([]);