Skip to content

Conversation

LiuwqGit
Copy link
Contributor

@LiuwqGit LiuwqGit commented Mar 10, 2017

beforeRouteUpdate (to, from, next) {

  • // 在当前路由改变,但是改组件被复用时调用
  • // 在当前路由改变,但是该组件被复用时调用
    // 举例来说,对于一个带有动态参数的路径 /foo/:id,在 /foo/1 和 /foo/2 之间跳转的时候,
    // 由于会渲染同样的 Foo 组件,因此组件实例会被复用。而这个钩子就会在这个情况下被调用。
    // 可以访问组件实例 this
    },

@LiuwqGit LiuwqGit changed the title Update navigation-guards.md 但是该组件被复用时调用 Update navigation-guards.md 但是改组件被复用时调用 => 但是该组件被复用时调用 Mar 10, 2017
@posva posva requested a review from fnlctrl March 10, 2017 13:00
@fnlctrl fnlctrl merged commit a2c2817 into vuejs:dev Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants