解决路由bug

This commit is contained in:
Teo
2025-07-14 16:10:03 +08:00
parent 748464b44a
commit d03efb8d6f
10 changed files with 62 additions and 66 deletions

View File

@ -288,12 +288,16 @@ const getList = async () => {
}
}
loading.value = true;
console.log(queryParams.value);
loading.value = true;
const res = await listProgressCategory(queryParams.value);
const data = proxy?.handleTree<ProgressCategoryVO>(res.data, 'id', 'pid');
if (data) {
progressCategoryList.value = data;
try {
const res = await listProgressCategory(queryParams.value);
const data = proxy?.handleTree<ProgressCategoryVO>(res.data, 'id', 'pid');
if (data) {
progressCategoryList.value = data;
}
} finally {
// 不管成功或失败,最后都设置为 false
loading.value = false;
}
};