解决刷新后排序重置
parent
3a7b41876a
commit
a014053d98
|
@ -123,7 +123,10 @@ watch(
|
||||||
currentPage.value = parseInt(router.currentRoute.value.query.currentPage)
|
currentPage.value = parseInt(router.currentRoute.value.query.currentPage)
|
||||||
if (router.currentRoute.value.query.pageSize)
|
if (router.currentRoute.value.query.pageSize)
|
||||||
pageSize.value = parseInt(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()
|
getClosedProjects()
|
||||||
},
|
},
|
||||||
// 组件创建完后获取数据,
|
// 组件创建完后获取数据,
|
||||||
|
|
|
@ -139,7 +139,10 @@ watch(
|
||||||
currentPage.value = parseInt(router.currentRoute.value.query.currentPage)
|
currentPage.value = parseInt(router.currentRoute.value.query.currentPage)
|
||||||
if (router.currentRoute.value.query.pageSize)
|
if (router.currentRoute.value.query.pageSize)
|
||||||
pageSize.value = parseInt(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()
|
getProjects()
|
||||||
},
|
},
|
||||||
// 组件创建完后获取数据,
|
// 组件创建完后获取数据,
|
||||||
|
|
Loading…
Reference in New Issue