This commit is contained in:
zhaofang
2022-10-20 14:09:43 +08:00
parent 09f7581ba8
commit b21160ba80
9 changed files with 26 additions and 27 deletions

View File

@@ -17,6 +17,7 @@ const user = {
curIdentity: sessionStorage.getItem("curIdentity") == null ? 1 : sessionStorage.getItem("curIdentity"), // 用户当前选择的身份 1学员 2教师 3管理员
permissions: [],
intTimeNote:0,
attention:false,
},
mutations: {
SET_IntTimeNote: (state, u) => {
@@ -44,8 +45,15 @@ const user = {
SET_PERMISSIONS: (state, permissions) => {
state.permissions = permissions
},
SET_Attention: (state, m)=>{
state.attention = m
}
},
actions: {
// /用户触发事件
setAttention({ commit }, iden) {
commit('SET_Attention', iden);
},
// /用户触发事件
userTrigger({ commit }, event) {
event.source='page';