|
@@ -9,6 +9,8 @@ Vue.use(Vuex)
|
|
|
export default new Vuex.Store({
|
|
|
state: {
|
|
|
// 阿里云环境,开发环境使用 admin:liujiandong ,测试环境,生产环境使用null
|
|
|
+ // ssoToken: ['aly_dev', 'serve'].includes(process.env.NODE_ENV) ? window.location.href.includes('ct')? 'admin:chentao22' :'admin:liujiandong' : null,
|
|
|
+ // ssoToken: ['aly_dev', 'serve'].includes(process.env.NODE_ENV) ? window.location.href.includes('zy')? 'admin:zhangyang12' :'admin:liujiandong' : null,
|
|
|
ssoToken: ['aly_dev', 'serve'].includes(process.env.NODE_ENV) ? 'admin:liujiandong' : null,
|
|
|
// ssoToken: '',
|
|
|
// ssoToken: null,
|
|
@@ -70,6 +72,7 @@ export default new Vuex.Store({
|
|
|
isrequestAuth: (state) => state.isrequestAuth,
|
|
|
permissions: (state) => state.permissions,
|
|
|
floorObj: (state) => state.floorObj,
|
|
|
+ userInfo: (state) => state.userInfo,
|
|
|
},
|
|
|
mutations: {
|
|
|
SETPLAZENAME(state, data) {
|