diff --git a/src/components/core/d2-multiple-page-control/index.vue b/src/components/core/d2-multiple-page-control/index.vue index 43a9b469..262584c6 100644 --- a/src/components/core/d2-multiple-page-control/index.vue +++ b/src/components/core/d2-multiple-page-control/index.vue @@ -12,7 +12,7 @@ diff --git a/src/router/routes.js.REMOVED.git-id b/src/router/routes.js.REMOVED.git-id index 4b19a510..24682293 100644 --- a/src/router/routes.js.REMOVED.git-id +++ b/src/router/routes.js.REMOVED.git-id @@ -1 +1 @@ -7cc39e5aa61631be559f5b0319ee5a1915748943 \ No newline at end of file +bb07b3ba57519000163de64466fa95e4ce348572 \ No newline at end of file diff --git a/src/store/modules/d2admin.js b/src/store/modules/d2admin.js index 9bf06016..8e3d4383 100644 --- a/src/store/modules/d2admin.js +++ b/src/store/modules/d2admin.js @@ -15,7 +15,13 @@ export default { tagPool: [], // 当前显示的多页面列表 pageOpenedList: [ - { name: 'index', title: '首页' } + { + name: 'index', + meta: { + title: '首页', + requiresAuth: false + } + } ], // 当前页面 pageCurrent: '' @@ -87,11 +93,12 @@ export default { */ d2adminTagIncreate (state, { tag, argu, query }) { // 设置新的 tag 在新打开一个以前没打开过的页面时使用 - let newTag = tag - newTag.argu = argu || newTag.argu - newTag.query = query || newTag.query + let newPage = tag + newPage.argu = argu || newPage.argu + newPage.query = query || newPage.query + newPage.argu = argu || newPage.argu // 添加进当前显示的页面数组 - state.pageOpenedList.push(newTag) + state.pageOpenedList.push(newPage) // 更新设置到数据库 this.commit('d2adminVuex2Db', 'pageOpenedList') },