fix(测试计划): 脑图执行用例-切换成规划试图展示列表

This commit is contained in:
teukkk 2024-08-01 16:24:08 +08:00 committed by 刘瑞斌
parent 5bc0ca72ea
commit 870dbfa388
1 changed files with 12 additions and 1 deletions

View File

@ -465,6 +465,15 @@
} }
); );
watch(
() => props.treeType,
(val) => {
if (val === 'COLLECTION') {
showType.value = 'list';
}
}
);
async function loadCaseList(refreshTreeCount = true) { async function loadCaseList(refreshTreeCount = true) {
const tableParams = await getTableParams(false); const tableParams = await getTableParams(false);
setLoadListParams({ setLoadListParams({
@ -484,7 +493,9 @@
watch( watch(
() => props.activeModule, () => props.activeModule,
() => { () => {
loadCaseList(); if (showType.value === 'list') {
loadCaseList();
}
} }
); );