diff --git a/.env.development b/.env.development index 0e9926e..0e72089 100644 --- a/.env.development +++ b/.env.development @@ -2,13 +2,13 @@ VUE_APP_ENV = 'development' VUE_APP_NAME = 学院 VUE_APP_API_URL = https://testapi #VUE_APP_API_URL = https://api.shequ.fanruan.com -NEW_VUE_APP_API_URL = http://47.103.147.140:9094 +NEW_VUE_APP_API_URL = http://139.196.30.6:9094 VUE_APP_EDU_URL = http://localhost:8084 VUE_APP_TOKEN_URL = http://localhost VUE_APP_SHEQU_URL = https://frbbs VUE_APP_ID_URL = https://id #VUE_APP_ID_URL = https://passport.fanruan.com #VUE_APP_CIDAPI_URL = https://cid.fanruan.com/api -VUE_APP_CIDAPI_URL = https://test-cid/api +VUE_APP_CIDAPI_URL = https://cid/api VUE_APP_PASS_URL = http://localhost:8080 VUE_APP_CERT_URL = https://admin.shequ.fanruan.com 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..3d3f18d 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -123,7 +123,7 @@ - + @@ -139,9 +139,9 @@
- 登录 - 登录 + 登录
@@ -149,7 +149,7 @@ -
+
@@ -168,7 +168,7 @@
-
+
@@ -236,7 +236,7 @@ - + @@ -359,6 +359,7 @@ setup() { const { proxy } = getCurrentInstance(); const state = reactive({ + isPc: document.body.clientWidth > 1200, allMenu: [], leftMenu: [], rightMenu: [], 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 @@