mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 14:26:43 +08:00
提交
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user