呼叫
This commit is contained in:
@@ -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() {
|
mounted() {
|
||||||
// 定时器
|
// 定时器
|
||||||
const timer = setInterval(() => {
|
const timer = setInterval(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user