From 6b089493270d7baf493a57a299ee84574c72fcf1 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 13 Jan 2023 10:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E6=A3=80=E6=9F=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage/homePage.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/HomePage/homePage.vue b/src/components/HomePage/homePage.vue index e9b7966d..f1179f6b 100644 --- a/src/components/HomePage/homePage.vue +++ b/src/components/HomePage/homePage.vue @@ -166,7 +166,7 @@ if(this.pageId !== this.userInfo.aid) { this.followHas(); } - this.Teacherprofile(); + this.teacherProfile(); }, @@ -191,7 +191,7 @@ }else{ this.tearchUrl =''; } - + //通过用户的sysId(原系统中的kid)去取用户 apiBoeTeahcer.simpleInfo(res.result.sysId).then(sinfo=>{ if(sinfo.status=='200'){ @@ -226,8 +226,8 @@ }) }) }, - Teacherprofile(){ - apiTeach.has(this.userInfo.aid).then(res =>{ + teacherProfile(){ //检查是否是教师 + apiTeach.has(this.pageId).then(res =>{ this.teaechswich = res.result.isTeacher; }) },