Import complete SCRM project
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
navNum:sessionStorage.getItem('navNum') || 0,
|
||||
breadText:sessionStorage.getItem('breadText') || '机器人管理',
|
||||
childText:sessionStorage.getItem('childText') || '',
|
||||
userInfo:localStorage.getItem('userInfo'),
|
||||
picUrl:sessionStorage.getItem('picurl') || '',
|
||||
setEchoRobotNum:sessionStorage.getItem('echoRobotNum') || 2,
|
||||
customNum:sessionStorage.getItem('customNum') || 0,
|
||||
},
|
||||
mutations: {
|
||||
Get_navNum(state,navNum){
|
||||
state.navNum=navNum;
|
||||
sessionStorage.setItem('navNum',navNum)
|
||||
},
|
||||
Get_breadText(state,text){
|
||||
state.breadText = text;
|
||||
sessionStorage.setItem('breadText',text);
|
||||
},
|
||||
Get_childText(state,text){
|
||||
state.childText = text;
|
||||
sessionStorage.setItem('childText',text)
|
||||
},
|
||||
Get_userInfo(state,userInfo){
|
||||
state.userInfo = userInfo;
|
||||
localStorage.setItem('userInfo',userInfo)
|
||||
},
|
||||
Get_picUrl(state,picurl){
|
||||
state.picUrl = picurl;
|
||||
sessionStorage.setItem('picurl',picurl)
|
||||
},
|
||||
Get_setEchoRobotNum(state,echoRobotNumber){
|
||||
state.setEchoRobotNum = echoRobotNumber;
|
||||
sessionStorage.setItem('echoRobotNum',echoRobotNumber);
|
||||
},
|
||||
Get_customNum(state,num){
|
||||
state.customNum = num;
|
||||
sessionStorage.setItem('customNum',num)
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
modules: {
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user