fix:levelbar&&tabsview bug

This commit is contained in:
Pan
2017-11-01 17:55:11 +08:00
parent 8211016078
commit aaf24b4654
4 changed files with 20 additions and 13 deletions

View File

@@ -21,7 +21,8 @@ const app = {
if (state.visitedViews.some(v => v.path === view.path)) return
state.visitedViews.push({
name: view.name,
path: view.path
path: view.path,
title: view.meta.title || 'no-name'
})
if (!view.meta.noCache) {
state.cachedViews.push(view.name)