Explorar o código

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

将两个地方的area字段取值从this.schooldest改为this.userJson.schooldest,确保数据来源正确
lsc hai 6 días
pai
achega
f33c8719df
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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,