diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue
index 7875ad3..40574ee 100644
--- a/src/components/setting/Setting.vue
+++ b/src/components/setting/Setting.vue
@@ -55,6 +55,10 @@
显示抽屉按钮
+
+ 多页签模式
+
+
@@ -99,6 +103,11 @@ export default {
SettingItem,
AIcon,
ALayoutSider},
+ computed: {
+ multipage () {
+ return this.$store.state.setting.multipage
+ }
+ },
methods: {
onColorChange (values, colors) {
if (colors.length > 0) {
@@ -118,6 +127,9 @@ export default {
_this.$message.success(`复制成功`)
clipboard.destroy()
})
+ },
+ setMultipage (checked) {
+ this.$store.commit('setting/setMultipage', checked)
}
}
}
diff --git a/src/layouts/MenuView.vue b/src/layouts/MenuView.vue
index 4dcbf91..8ed8431 100644
--- a/src/layouts/MenuView.vue
+++ b/src/layouts/MenuView.vue
@@ -1,16 +1,83 @@
+
+
+
-
+
+
+
+
diff --git a/src/layouts/PageView.vue b/src/layouts/PageView.vue
index a153337..77cc830 100644
--- a/src/layouts/PageView.vue
+++ b/src/layouts/PageView.vue
@@ -4,7 +4,10 @@
-
+
+
+
+
@@ -23,6 +26,11 @@ export default {
extraImage: ''
}
},
+ computed: {
+ multipage () {
+ return this.$store.state.setting.multipage
+ }
+ },
mounted () {
this.getPageHeaderInfo()
},
diff --git a/src/layouts/RouteView.vue b/src/layouts/RouteView.vue
index ce6a6f6..2da2158 100644
--- a/src/layouts/RouteView.vue
+++ b/src/layouts/RouteView.vue
@@ -1,12 +1,20 @@
-
+
+
+
+
diff --git a/src/store/modules/setting.js b/src/store/modules/setting.js
index fa87bc8..e9cda48 100644
--- a/src/store/modules/setting.js
+++ b/src/store/modules/setting.js
@@ -10,7 +10,8 @@ export default {
{link: 'https://pro.ant.design', name: 'Pro首页'},
{link: 'https://github.com/iczer/vue-antd-admin', icon: 'github'},
{link: 'https://ant.design', name: 'Ant Design'}
- ]
+ ],
+ multipage: true
},
mutations: {
setDevice (state, isMobile) {
@@ -21,6 +22,9 @@ export default {
},
setLayout (state, layout) {
state.layout = layout
+ },
+ setMultipage (state, multipage) {
+ state.multipage = multipage
}
}
}