update
This commit is contained in:
@@ -262,6 +262,17 @@ beforeRouteUPdate :路由改变呢重用组件的时候调用
|
||||
|
||||
beforeRouteLeave : 离开该组件的时候调用
|
||||
|
||||
eg
|
||||
eg:
|
||||
|
||||
```
|
||||
export default {
|
||||
name: 'aa',
|
||||
beforeRouteEnter (to, from, next) {
|
||||
window.console.log("组件里的")
|
||||
next()
|
||||
},
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user