fix(测试计划): 执行后刷新左侧模块树数量

--bug=1045026 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045026
This commit is contained in:
teukkk 2024-08-13 11:42:19 +08:00 committed by 刘瑞斌
parent da4cecfade
commit 21391bd378
1 changed files with 3 additions and 9 deletions

View File

@ -151,7 +151,7 @@
:params="batchUpdateParams"
:show-title-count="showType === 'list'"
:batch-update-executor="batchUpdateCaseExecutor"
@load-list="resetSelectorAndCaseList"
@load-list="resetCaseList"
/>
<!-- 批量移动 -->
<BatchApiMoveModal
@ -585,14 +585,9 @@
}
function resetCaseList() {
resetSelector();
getModuleCount();
loadList();
}
function resetSelectorAndCaseList() {
if (showType.value === 'list') {
resetSelector();
getModuleCount();
loadList();
}
}
@ -709,8 +704,7 @@
excludeIds: batchParams.value?.excludeIds || [],
});
Message.success(t('common.updateSuccess'));
resetSelector();
loadList();
resetCaseList();
emit('refresh');
} catch (error) {
// eslint-disable-next-line no-console