2022-07-31 08:27:56 +00:00
|
|
|
// 用户模块
|
|
|
|
export default {
|
|
|
|
state:{//存放状态
|
|
|
|
userInfo:{},
|
|
|
|
ifAnonymous:false//是否匿名通道
|
|
|
|
},
|
|
|
|
// Vuex中store数据改变的唯一方法就是mutations 不适合异步方法
|
|
|
|
mutations: {
|
|
|
|
// 设置是否是匿名通道
|
|
|
|
setAnonymous(state,str) {
|
|
|
|
state.ifAnonymous = str;
|
|
|
|
},
|
|
|
|
}
|
2022-07-30 08:05:50 +00:00
|
|
|
}
|