fix: 表格设置关闭后清除表格排序

This commit is contained in:
teukkk 2024-09-18 17:39:14 +08:00 committed by Craftsman
parent 64b35e9549
commit 429b4ea23c
2 changed files with 4 additions and 1 deletions

View File

@ -818,6 +818,7 @@
}; };
const handleInitColumn = async () => { const handleInitColumn = async () => {
emit('sorterChange', {});
await initColumn(); await initColumn();
}; };

View File

@ -160,7 +160,9 @@
subdirectoryVal.value subdirectoryVal.value
); );
emit('update:visible', false); emit('update:visible', false);
emit('initData'); if (hasChange.value) {
emit('initData');
}
}; };
const loadColumn = (key: TableKeyEnum) => { const loadColumn = (key: TableKeyEnum) => {