mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
我都笔记组件提取
This commit is contained in:
@@ -15,8 +15,12 @@ const user = {
|
||||
studyTaskCount:0,//学习任务数
|
||||
curIdentity: sessionStorage.getItem("curIdentity") == null ? 1 : sessionStorage.getItem("curIdentity"), // 用户当前选择的身份 1学员 2教师 3管理员
|
||||
permissions: [],
|
||||
intTimeNote:0,
|
||||
},
|
||||
mutations: {
|
||||
SET_IntTimeNote: (state, u) => {
|
||||
state.intTimeNote = u;
|
||||
},
|
||||
SET_Identity: (state, iden) => {
|
||||
state.identity = iden
|
||||
},
|
||||
@@ -41,6 +45,14 @@ const user = {
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
SetIntTimeNote({
|
||||
commit
|
||||
}, iden) {
|
||||
return new Promise((resolve) => {
|
||||
commit('SET_IntTimeNote', iden);
|
||||
resolve();
|
||||
})
|
||||
},
|
||||
refrashMsg({ commit }) {
|
||||
apiMessage.isRead().then(res=>{
|
||||
if(res.status==200){
|
||||
|
||||
Reference in New Issue
Block a user