fix(用例管理): 切换关联接口或场景用例,列表&模块不刷新问题

This commit is contained in:
WangXu10 2024-04-23 17:50:37 +08:00 committed by 刘瑞斌
parent ef9dfd62fd
commit 449d7610d1
1 changed files with 9 additions and 1 deletions

View File

@ -677,7 +677,6 @@
value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[] value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]
) { ) {
caseType.value = value as keyof typeof CaseLinkEnum; caseType.value = value as keyof typeof CaseLinkEnum;
emit('update:currentSelectCase', caseType.value);
initModules(); initModules();
searchCase(); searchCase();
} }
@ -716,6 +715,15 @@
} }
); );
watch(
() => props.currentSelectCase,
() => {
initModules();
searchCase();
initFilter();
}
);
defineExpose({ defineExpose({
initModules, initModules,
}); });