|
@@ -8,8 +8,9 @@ import router from '../router'
|
|
|
Vue.use(Vuex)
|
|
|
export default new Vuex.Store({
|
|
|
state: {
|
|
|
- ssoToken: 'admin:lengqiang',
|
|
|
- // ssoToken: null,
|
|
|
+ // ssoToken: 'admin:lengqiang',
|
|
|
+ ssoToken: null,
|
|
|
+ plazaName: '',
|
|
|
isPreview: false,
|
|
|
lastRoute: '',
|
|
|
isrequestAuth: true, // 是否请求登录校验接口
|
|
@@ -37,6 +38,8 @@ export default new Vuex.Store({
|
|
|
showView: 1,
|
|
|
},
|
|
|
getters: {
|
|
|
+ plazaName: (state) => state.plazaName,
|
|
|
+ accessLevel: (state) => state.accessLevel,
|
|
|
isPreview: (state) => state.isPreview,
|
|
|
ssoToken: (state) => state.ssoToken,
|
|
|
lastRoute: (state) => state.lastRoute,
|
|
@@ -54,6 +57,9 @@ export default new Vuex.Store({
|
|
|
showView: (state) => state.showView,
|
|
|
},
|
|
|
mutations: {
|
|
|
+ SETPLAZENAME(state, data) {
|
|
|
+ state.plazaName = data
|
|
|
+ },
|
|
|
/**
|
|
|
* 修改 categoryId
|
|
|
*/
|