From 1e577853d288f97ae3072701f37fae4e2bfbae4b Mon Sep 17 00:00:00 2001 From: lixg Date: Thu, 2 Mar 2023 03:10:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/discuss/DiscussPage.vue | 8 ++++---- src/views/examination/ExternalExam.vue | 4 ++-- src/views/homeworkpage/HomeworkPage.vue | 2 ++ src/views/liveboradcast/LiveBoradcast.vue | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/discuss/DiscussPage.vue b/src/views/discuss/DiscussPage.vue index 786c387..b3eb360 100644 --- a/src/views/discuss/DiscussPage.vue +++ b/src/views/discuss/DiscussPage.vue @@ -161,15 +161,15 @@ request(DISCUSS_LIST, { id, }) .then((e) => { - state.info = e.data; - console.log("讨论详情", state.info); - state.discussId = e.data.discussDtoList[0].id; - getPostList(e.data.discussDtoList[0].id); if (e.code === 6) { router.push({ path: "/notpath", }); } + state.info = e.data; + console.log("讨论详情", state.info); + state.discussId = e.data.discussDtoList[0].id; + getPostList(e.data.discussDtoList[0].id); }) .catch((err) => { console.log(err); diff --git a/src/views/examination/ExternalExam.vue b/src/views/examination/ExternalExam.vue index a6616a3..0b626c4 100644 --- a/src/views/examination/ExternalExam.vue +++ b/src/views/examination/ExternalExam.vue @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2023-02-06 18:26:23 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-03-02 01:57:28 + * @LastEditTime: 2023-03-02 02:38:59 * @FilePath: /stu_h5/src/views/examination/ExternalExam.vue * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -55,12 +55,12 @@ const state = reactive({ request(EXTERNALEXAM, { externalId: courseId }) .then((res) => { console.log("获取考试", res); - state.datainfo = res.data; if (res.code === 6) { router.push({ path: "/notpath", }); } + state.datainfo = res.data; }) .catch((err) => { console.log(err); diff --git a/src/views/homeworkpage/HomeworkPage.vue b/src/views/homeworkpage/HomeworkPage.vue index 2cf682a..b868cc5 100644 --- a/src/views/homeworkpage/HomeworkPage.vue +++ b/src/views/homeworkpage/HomeworkPage.vue @@ -119,6 +119,7 @@ const { data } = taskId && taskId !== "undefined" ? useRequest(TASK_WORK_DETAIL, { workId, taskId }, (e) => { if (e.code === 6) { + console.log("作业判断", e); router.push({ path: "/notpath", }); @@ -126,6 +127,7 @@ const { data } = }) : useRequest(TASK_WORK_DETAIL, { workId }, (e) => { if (e.code === 6) { + console.log("作业判断", e); router.push({ path: "/notpath", }); diff --git a/src/views/liveboradcast/LiveBoradcast.vue b/src/views/liveboradcast/LiveBoradcast.vue index bf2c4d0..b551b5f 100644 --- a/src/views/liveboradcast/LiveBoradcast.vue +++ b/src/views/liveboradcast/LiveBoradcast.vue @@ -223,6 +223,7 @@ const returnclick = () => { }; const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId }, (e) => { + console.log("直播判断", e); if (e.code === 6) { router.push({ path: "/notpath",