解决刷新后排序重置

main
wuyize 2022-07-14 15:05:31 +08:00
parent 3a7b41876a
commit a014053d98
2 changed files with 8 additions and 2 deletions

View File

@ -123,7 +123,10 @@ watch(
currentPage.value = parseInt(router.currentRoute.value.query.currentPage)
if (router.currentRoute.value.query.pageSize)
pageSize.value = parseInt(router.currentRoute.value.query.pageSize)
if (router.currentRoute.value.query.sortBy)
sortBy.value = router.currentRoute.value.query.sortBy
if (router.currentRoute.value.query.asc)
asc.value = router.currentRoute.value.query.asc
getClosedProjects()
},
//

View File

@ -139,7 +139,10 @@ watch(
currentPage.value = parseInt(router.currentRoute.value.query.currentPage)
if (router.currentRoute.value.query.pageSize)
pageSize.value = parseInt(router.currentRoute.value.query.pageSize)
if (router.currentRoute.value.query.sortBy)
sortBy.value = router.currentRoute.value.query.sortBy
if (router.currentRoute.value.query.asc)
asc.value = router.currentRoute.value.query.asc
getProjects()
},
//