加依赖

This commit is contained in:
huichao
2020-07-27 18:22:04 +08:00
parent 09e93de123
commit 9ebba9b0ea

View File

@@ -25,6 +25,14 @@ export default {
reload: this.reload reload: this.reload
} }
}, },
methods: {
reload() {
this.isRouterAlive = false
this.$nextTick(() => {
this.isRouterAlive = true
})
}
}
// watch: { // watch: {
// $route(to, from) { // $route(to, from) {
// //首次加载去除动画 // //首次加载去除动画