wuhongyu 4 سال پیش
والد
کامیت
04e4440613
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      src/layout/teacher/teacherInfo.vue

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

@@ -107,10 +107,8 @@ export default {
     ...teacher(['fetch']),
     async search() {
       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);
     },
   },