From f7c0c73f87390f9b67b13fd51be037340cea3ea9 Mon Sep 17 00:00:00 2001 From: genghuanhu_ext Date: Wed, 8 Nov 2023 18:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B2=E5=B8=88=E5=AE=A1=E6=A0=B8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Header.vue | 18 ++++++- src/utils/api/teacher.js | 7 +-- src/views/CourseUploadDetail.vue | 4 +- src/views/PlayCourse.vue | 2 +- src/views/Teacher/TeacherReview.vue | 78 +++++++++++++++++++++++++++-- 5 files changed, 99 insertions(+), 10 deletions(-) diff --git a/src/components/common/Header.vue b/src/components/common/Header.vue index 9c30080..63101f2 100644 --- a/src/components/common/Header.vue +++ b/src/components/common/Header.vue @@ -150,12 +150,15 @@ - + @@ -336,6 +339,19 @@ const becomeTeacher = () => { else currentTabRouter.value = name } } +const reviewTeacher = () => { + if (!userStore.token) { + router.push({ + name: 'login', + }) + } else { + router.push({ + name: 'TeacherReview' + }) + if (name.includes('course')) currentTabRouter.value = 'course' + else currentTabRouter.value = name + } +} \ No newline at end of file