---wiki正式切换到vue3版本---
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import global from './modules/global'
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
export default new Vuex.Store({
|
||||
modules: {
|
||||
global,
|
||||
}
|
||||
});
|
||||
@@ -1,22 +0,0 @@
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
pageTabNameMap: {},
|
||||
rightAsideWidth: 0,
|
||||
},
|
||||
getters: {
|
||||
getPageTabNameMap(state) {
|
||||
return state.pageTabNameMap;
|
||||
},
|
||||
},
|
||||
mutations: {
|
||||
addTableName(state, item) {
|
||||
let sameObj = Object.assign({}, state.pageTabNameMap);
|
||||
sameObj[item.key] = item.val;
|
||||
state.pageTabNameMap = sameObj;
|
||||
},
|
||||
setRightAsideWidth(state, rightAsideWidth) {
|
||||
state.rightAsideWidth = rightAsideWidth;
|
||||
},
|
||||
}
|
||||
}
|
||||
10
zyplayer-doc-ui/wiki-ui/src/store/pageData.js
Normal file
10
zyplayer-doc-ui/wiki-ui/src/store/pageData.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import {defineStore} from 'pinia'
|
||||
|
||||
export const useStorePageData = defineStore('pageData', {
|
||||
state: () => {
|
||||
return {
|
||||
pageInfo: {},
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
10
zyplayer-doc-ui/wiki-ui/src/store/userData.js
Normal file
10
zyplayer-doc-ui/wiki-ui/src/store/userData.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import {defineStore} from 'pinia'
|
||||
|
||||
export const useStoreUserData = defineStore('userData', {
|
||||
state: () => {
|
||||
return {
|
||||
// 用户信息
|
||||
userInfo: {},
|
||||
}
|
||||
},
|
||||
})
|
||||
10
zyplayer-doc-ui/wiki-ui/src/store/wikiDisplay.js
Normal file
10
zyplayer-doc-ui/wiki-ui/src/store/wikiDisplay.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import {defineStore} from 'pinia'
|
||||
|
||||
export const useStoreDisplay = defineStore('wikiDisplay', {
|
||||
state: () => {
|
||||
return {
|
||||
// 左边目录栏宽度
|
||||
viewMenuWidth: 300,
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user