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