fix(components): 修复首页分页问题
This commit is contained in:
parent
fbce84c580
commit
e1686c9c6f
@ -20,7 +20,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route'(to, from) {
|
'$route'(to, from) {
|
||||||
if (from.query.page && to.query.page) {
|
if ((to.query.page || 1) !== (from.query.page || 1)) {
|
||||||
this.$router.go()
|
this.$router.go()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user