feat: 优化路由持久化

This commit is contained in:
algerkong
2023-12-27 21:44:55 +08:00
parent d04aeef40b
commit f5d097e975
3 changed files with 16 additions and 12 deletions
+7 -5
View File
@@ -43,12 +43,14 @@ if (route.query.type) {
watch(
() => route.query,
async newParams => {
const params = {
tag: newParams.type || '',
limit: 30,
before: 0
if(newParams.type){
const params = {
tag: newParams.type || '',
limit: 30,
before: 0
}
loadList(newParams.type);
}
loadList(newParams.type);
}
)