1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| import config from "@/config";
|
| export default {
| state: {
| //移动端布局
| ismobile: false,
| //布局
| layout: config.LAYOUT,
| //菜单是否折叠 toggle
| menuIsCollapse: config.MENU_IS_COLLAPSE,
| //多标签栏
| layoutTags: config.LAYOUT_TAGS,
| //主题
| theme: config.THEME,
| },
| mutations: {
| SET_ismobile(state, key){
| state.ismobile = key
| },
| SET_layout(state, key){
| state.layout = key
| },
| SET_theme(state, key){
| state.theme = key
| },
| TOGGLE_menuIsCollapse(state){
| state.menuIsCollapse = !state.menuIsCollapse
| },
| TOGGLE_layoutTags(state){
| state.layoutTags = !state.layoutTags
| }
| }
| }
|
|