Sfoglia il codice sorgente

fix(mixins): 修正area字段获取源为userJson下的schooldest

将两个地方的area字段取值从this.schooldest改为this.userJson.schooldest,确保数据来源正确
lsc 6 giorni fa
parent
commit
f33c8719df
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/mixins/mixin.js

+ 2 - 2
src/mixins/mixin.js

@@ -198,7 +198,7 @@ export const myMixin = {
         "teacherPhone": this.userJson.phonenumber,
         "eduId": this.userJson.eduid || this.userJson.sessionid,
         "schoolName": this.userJson.schoolName,
-        "area": this.schooldest,
+        "area": this.userJson.schooldest,
         "coursePackageName": coursePackageName2 ? coursePackageName2 : coursePackageName.data[0][0].title,
         "courseId": classData.courseId,
         "courseName": courseName || classData.title,
@@ -281,7 +281,7 @@ export const myMixin = {
         "teacherPhone": this.userJson.phonenumber,
         "eduId": this.userJson.eduid || this.userJson.sessionid,
         "schoolName": this.userJson.schoolName,
-        "area": this.schooldest,
+        "area": this.userJson.schooldest,
         "coursePackageName": coursePackageName2 ? coursePackageName2 : coursePackageName.data[0][0].title,
         "courseId": classData.courseId,
         "courseName": courseName || classData.title,