解决路由bug
This commit is contained in:
@ -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;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user