refactor(core): and cover

This commit is contained in:
qingwei.li 2017-02-18 17:02:16 +08:00 • committed by cinwell.li
commit 27e7e749af
6 changed files with 69 additions and 8 deletions

View file

@ -39,10 +39,13 @@ export function initRoute (vm) {
on('hashchange', _ => {
normalize()
vm.route = parse()
if (lastRoute.path === vm.route.path) {
// TODO: goto xxx
return
}
vm._fetchCover()
vm._fetch()
lastRoute = vm.route
})