wuhongyu 4 years ago
parent
commit
04e4440613
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/layout/teacher/teacherInfo.vue

+ 2 - 4
src/layout/teacher/teacherInfo.vue

@@ -107,10 +107,8 @@ export default {
     ...teacher(['fetch']),
     ...teacher(['fetch']),
     async search() {
     async search() {
       const teacher = await this.fetch(this.teaid);
       const teacher = await this.fetch(this.teaid);
-      const xsscore = Number.parseFloat(teacher.xsscore);
-      console.log(typeof xsscore);
-      console.log(typeof xsscore.toFixed(2));
-      teacher.xsscore = xsscore;
+      let xsscore = parseFloat(teacher.data.xsscore).toFixed(2);
+      teacher.data.xsscore = xsscore;
       this.$set(this, `teainfo`, teacher.data);
       this.$set(this, `teainfo`, teacher.data);
     },
     },
   },
   },