refactor(router): dupports multiple mode

This commit is contained in:
qingwei.li 2017-05-29 19:21:08 +08:00 committed by cinwell.li
commit 2c7041c8fb
20 changed files with 377 additions and 220 deletions

View file

@ -153,7 +153,7 @@ export function init (config, vm) {
if (INDEXS[path]) return count++
helper
.get(vm.$getFile(path))
.get(vm.router.getFile(path))
.then(result => {
INDEXS[path] = genIndex(path, result)
len === ++count && saveData(config.maxAge)