mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-30 03:47:22 +08:00
✨ feat: 优化路由持久化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user