mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
解决学习任务自动会跳转课程管理的问题
This commit is contained in:
@@ -162,7 +162,10 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
|||||||
|
|
||||||
setCurIdentity(iden){
|
setCurIdentity(iden){
|
||||||
this.$store.dispatch('SetCurIdentity',iden);
|
this.$store.dispatch('SetCurIdentity',iden);
|
||||||
this.$router.push('/manager/index');
|
if(iden>2){
|
||||||
|
this.$router.push('/manager/index');
|
||||||
|
}
|
||||||
|
//
|
||||||
// if(this.isTest){
|
// if(this.isTest){
|
||||||
// //this.$router.push('/manage/learningpath');
|
// //this.$router.push('/manage/learningpath');
|
||||||
// location.href='/manage/learningpath';
|
// location.href='/manage/learningpath';
|
||||||
|
|||||||
@@ -80,24 +80,24 @@ const user = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
refrashStudyTaskCount({ commit }) {
|
refrashStudyTaskCount({ commit }) {
|
||||||
// apiManage.getTaskNum().then(res=>{
|
apiManage.getTaskNum().then(res=>{
|
||||||
// if(res.code==200){
|
if(res.code==200){
|
||||||
// commit('SET_StudyTaskCount',res.data.todoTaskCounts);
|
commit('SET_StudyTaskCount',res.data.todoTaskCounts);
|
||||||
// }else{
|
}else{
|
||||||
// console.log("获取学习任务数失败:"+res.msg);
|
console.log("获取学习任务数失败:"+res.msg);
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
apiBoeCourse.cmtaskList({page:1,size:1,get_count:1}).then(res=>{
|
// apiBoeCourse.cmtaskList({page:1,size:1,get_count:1}).then(res=>{
|
||||||
if(res.status==200){
|
// if(res.status==200){
|
||||||
let count = 0;
|
// let count = 0;
|
||||||
if(res.result.count > 0){
|
// if(res.result.count > 0){
|
||||||
count = res.result.count;
|
// count = res.result.count;
|
||||||
}
|
// }
|
||||||
commit('SET_StudyTaskCount',count);
|
// commit('SET_StudyTaskCount',count);
|
||||||
}else{
|
// }else{
|
||||||
console.log("读取学习任务数失败:"+res.message);
|
// console.log("读取学习任务数失败:"+res.message);
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
//设置用户身份
|
//设置用户身份
|
||||||
SetIdentity({ commit }, iden) {
|
SetIdentity({ commit }, iden) {
|
||||||
|
|||||||
Reference in New Issue
Block a user