feat(render) nameLink for each route, fixed #99

This commit is contained in:
qingwei.li 2017-02-28 20:56:11 +08:00 committed by cinwell.li
commit 8ad835ca26
4 changed files with 21 additions and 2 deletions

View file

@ -34,6 +34,7 @@ let lastRoute = {}
export function initRoute (vm) {
normalize()
lastRoute = vm.route = parse()
vm._updateRender()
on('hashchange', _ => {
normalize()