reloaded 5 роки тому
батько
коміт
e192af8415
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      src/views/user/attendance.vue

+ 2 - 0
src/views/user/attendance.vue

@@ -115,6 +115,8 @@ export default {
         const attendance = await this.modelFetch({ model: 'attendance', studentid: this.selvalue });
         const attendance = await this.modelFetch({ model: 'attendance', studentid: this.selvalue });
         if (attendance.data) {
         if (attendance.data) {
           this.$set(this, `attendList`, attendance.data.attend);
           this.$set(this, `attendList`, attendance.data.attend);
+        } else {
+          this.attendList = [];
         }
         }
       }
       }
       if (this.type === '1') {
       if (this.type === '1') {