mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
任务
This commit is contained in:
@@ -79,16 +79,16 @@ const user = {
|
||||
})
|
||||
},
|
||||
refrashStudyTaskCount({ commit }) {
|
||||
apiBoeCourse.cmtaskList({page:1,size:1}).then(res=>{
|
||||
if(res.status==200){
|
||||
let count = 0;
|
||||
if(res.result.count > 0){
|
||||
count = res.result.count;
|
||||
}
|
||||
commit('SET_StudyTaskCount',count);
|
||||
}else{
|
||||
console.log("读取学习任务数失败:"+res.message);
|
||||
}
|
||||
apiBoeCourse.cmtaskList({page:1,size:1,get_count:1}).then(res=>{
|
||||
if(res.status==200){
|
||||
let count = 0;
|
||||
if(res.result.count > 0){
|
||||
count = res.result.count;
|
||||
}
|
||||
commit('SET_StudyTaskCount',count);
|
||||
}else{
|
||||
console.log("读取学习任务数失败:"+res.message);
|
||||
}
|
||||
})
|
||||
},
|
||||
//设置用户身份
|
||||
|
||||
Reference in New Issue
Block a user