From 5b1aa4c6c191c3020cddcec2750704b77502729d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wangwei-=E7=8E=8B=E4=BC=9F?= <870653736@qq.com> Date: Fri, 28 Oct 2022 13:15:22 +0800 Subject: [PATCH 01/10] =?UTF-8?q?add:dev=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.js b/src/main.js index 0c4db1b..4c278de 100644 --- a/src/main.js +++ b/src/main.js @@ -4,7 +4,6 @@ import 'dayjs/locale/zh-cn' import locale from 'element-plus/lib/locale/lang/zh-cn' import 'element-plus/lib/theme-chalk/index.css'; import './assets/icons' -//import 'element-plus/dist/index.css' import App from './App.vue'; import router from './router'; import store from './store'; From 200be85bc8522fbbe30a2bc05445e5673094b446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wangwei-=E7=8E=8B=E4=BC=9F?= <870653736@qq.com> Date: Fri, 28 Oct 2022 14:20:12 +0800 Subject: [PATCH 02/10] =?UTF-8?q?update:=E8=AE=B2=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/teacher.js | 4 ++ src/components/Header.vue | 4 +- .../TeacherApply/TeacherApplyModal.vue | 37 +++++++++++-------- workspace.code-workspace | 8 ---- 4 files changed, 28 insertions(+), 25 deletions(-) delete mode 100644 workspace.code-workspace diff --git a/src/api/teacher.js b/src/api/teacher.js index 86e553f..3f51503 100644 --- a/src/api/teacher.js +++ b/src/api/teacher.js @@ -19,3 +19,7 @@ export function addTeacher(params) { export function editTeacher(id, params) { return requestPut(`/api/lecturer/${id}`,params); } + +export function judgeIsTeacher(uid) { + return requestGet(`/api/lecturer/check/${uid}`); +} \ No newline at end of file diff --git a/src/components/Header.vue b/src/components/Header.vue index 91bb757..34d2fbf 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -123,7 +123,7 @@ - + @@ -236,7 +236,7 @@ - + diff --git a/src/components/TeacherApply/TeacherApplyModal.vue b/src/components/TeacherApply/TeacherApplyModal.vue index 63b7f56..bbddabd 100644 --- a/src/components/TeacherApply/TeacherApplyModal.vue +++ b/src/components/TeacherApply/TeacherApplyModal.vue @@ -1,5 +1,5 @@