// beforeRouteEnter(to, from, next) {
// console.log(to)
// console.log(from)
// console.log(next)
// next((vm) => {
// console.log(from.name === 'StatusMonitoring', 1212121)
// if (from.name === 'StatusMonitoring') {
// vm.boolEnter = true
// } else {
// vm.boolEnter = false
// }
// })
// },
// activated() {
// console.log(this.boolEnter)
// if (this.boolEnter) {
// console.log(this.$route.query.value)
// this.areaValue = this.$route.query.value
// // 列表接口
// if (this.timeValue === '1') {
// this.defaultTime()
// }
// this.getinfo()
// // this.getProvince()
// this.optionsArea = provinceList
// this.getinfoCharts()
// }
// },
使用 keep-alive 需要判断路由from 走active
最新推荐文章于 2023-06-28 21:11:10 发布