This commit is contained in:
2022-07-23 11:07:07 +08:00
parent 463731f391
commit 8d124c4ad2

View File

@@ -134,6 +134,19 @@ export default {
}
},
watch: {
$route: {
handler(route) {
var addressparamer = route.fullPath.split('?')
if (addressparamer.length === 2) {
var param = addressparamer[addressparamer.length - 1]
this.region = param
}
},
immediate: true // 此项须设置为true
}
},
mounted() {
// 定时器
const timer = setInterval(() => {