解决刷新后排序重置
parent
3a7b41876a
commit
a014053d98
|
@ -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()
|
||||
},
|
||||
// 组件创建完后获取数据,
|
||||
|
|
|
@ -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()
|
||||
},
|
||||
// 组件创建完后获取数据,
|
||||
|
|
Loading…
Reference in New Issue