fix(工作台): 修复工作台用例归档跳转模块数量未更新bug

This commit is contained in:
xinxin.wu 2024-12-17 11:48:30 +08:00 committed by Craftsman
parent 5edff221c2
commit f5925a6ae0
1 changed files with 3 additions and 1 deletions

View File

@ -921,6 +921,8 @@
async function emitTableParams(isInit = false) {
if (isAdvancedSearchMode.value) return;
const tableParams = await initTableParams(isInit);
const filterParams = { ...NAV_NAVIGATION[route.query.home as WorkNavValueEnum] };
emit('init', {
keyword: keyword.value,
type: showType.value,
@ -928,7 +930,7 @@
moduleIds: tableParams.moduleIds,
current: propsRes.value.msPagination?.current,
pageSize: propsRes.value.msPagination?.pageSize,
filter: propsRes.value.filter,
filter: { ...filterParams, ...propsRes.value.filter },
});
}