1. 采用keep-alive实现缓存
2.activated, 初次进入会触发, 浏览器工具栏刷新不会触发,导致页面不刷新
beforeRouteEnter(to, from, next) { next((vm) => { vm.getList() }) }
1. 采用keep-alive实现缓存
2.activated, 初次进入会触发, 浏览器工具栏刷新不会触发,导致页面不刷新
beforeRouteEnter(to, from, next) { next((vm) => { vm.getList() }) }