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

This commit is contained in:
WangXu10 2024-04-23 17:50:37 +08:00 committed by 刘瑞斌
parent ef9dfd62fd
commit 449d7610d1

View File

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