mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
提交
This commit is contained in:
@@ -130,11 +130,15 @@
|
|||||||
// cmtask_status:this.cmtask_status,
|
// cmtask_status:this.cmtask_status,
|
||||||
// cmtask_name:this.cmtask_name,
|
// cmtask_name:this.cmtask_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
apiBoeCourse.cmtaskList(params).then(res=>{
|
apiBoeCourse.cmtaskList(params).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.total = res.result.count
|
this.total = res.result.count
|
||||||
this.couresList = res.result.list;
|
this.couresList = res.result.list;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
if(this.$route.fullPath != '/uc/study/task' && this.$route.fullPath != '/uc/study/courses' && this.$route.fullPath != '/study/index') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(res.result.count > 0) {
|
if(res.result.count > 0) {
|
||||||
this.$router.push('/uc/study/task')
|
this.$router.push('/uc/study/task')
|
||||||
} else {
|
} else {
|
||||||
@@ -147,8 +151,10 @@
|
|||||||
}else{
|
}else{
|
||||||
this.$router.push('/uc/study/courses')
|
this.$router.push('/uc/study/courses')
|
||||||
}
|
}
|
||||||
// this.pageData.list = res.result.list;
|
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
|
if(this.$route.fullPath != '/uc/study/task' || this.$route.fullPath != '/uc/study/courses' || this.$route.fullPath != '/study/index') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$router.push('/uc/study/courses');
|
this.$router.push('/uc/study/courses');
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user