fix(components): 修复首页分页问题

This commit is contained in:
ronger 2023-03-24 11:59:37 +08:00
parent fbce84c580
commit e1686c9c6f

View File

@ -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()
} }
} }