From 5e2bf870ac3e5c6ae81656e705e835ad31b43dc9 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 19 Aug 2022 14:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/StudyIndex.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/StudyIndex.vue b/src/views/StudyIndex.vue index 3c44cc33..1adfa426 100644 --- a/src/views/StudyIndex.vue +++ b/src/views/StudyIndex.vue @@ -130,11 +130,15 @@ // cmtask_status:this.cmtask_status, // cmtask_name:this.cmtask_name, } + apiBoeCourse.cmtaskList(params).then(res=>{ if(res.status==200){ this.total = res.result.count this.couresList = res.result.list; 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) { this.$router.push('/uc/study/task') } else { @@ -147,8 +151,10 @@ }else{ this.$router.push('/uc/study/courses') } - // this.pageData.list = res.result.list; }).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'); }) },