long
2021-09-07 69fce8a713cdb01f30281a69ad20875a44bee300
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * 页面通用 keepAlive 处理
 *
 * 通过页面重置功能,实现刷新功能
 */
 
export default {
  // keep-alive用
  activated() {
    // 根据isBack进行刷新
    if (!this.$route.meta.isBack) {
      console.log('初始化')
      this.init && this.init()
    } else {
      console.log('返回')
      this.regInit && this.regInit()
    }
  }
}