fix: v-model处理有延迟 需要手动处理

This commit is contained in:
dap 2024-12-30 19:23:13 +08:00
parent bd5d21227a
commit 6299b23f1a

View File

@ -294,12 +294,14 @@ const getTreeselect = async () => {
categoryOptions.value = res.data; categoryOptions.value = res.data;
}; };
const handleClick = (tab: TabsPaneContext, event: Event) => { const handleClick = (tab: TabsPaneContext, event: Event) => {
// v-model
activeName.value = tab.index;
handleQuery(); handleQuery();
}; };
/** 搜索按钮操作 */ /** 搜索按钮操作 */
const handleQuery = () => { const handleQuery = () => {
queryParams.value.pageNum = 1; queryParams.value.pageNum = 1;
if (activeName.value === '1') { if (activeName.value === '0') {
getList(); getList();
} else { } else {
getUnPublishList(); getUnPublishList();