From aaf24b46542b7ae6c4c424fa36d52dc1a8ebc08e Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 1 Nov 2017 17:55:11 +0800 Subject: [PATCH] fix:levelbar&&tabsview bug --- src/store/modules/app.js | 3 ++- src/views/form/components/ArticleDetail.vue | 2 +- src/views/layout/components/Levelbar.vue | 4 ++++ src/views/layout/components/TabsView.vue | 24 +++++++++++---------- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/store/modules/app.js b/src/store/modules/app.js index bed8098f..749916d6 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -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) diff --git a/src/views/form/components/ArticleDetail.vue b/src/views/form/components/ArticleDetail.vue index 83227df8..60379fa6 100644 --- a/src/views/form/components/ArticleDetail.vue +++ b/src/views/form/components/ArticleDetail.vue @@ -5,7 +5,7 @@