Ver código fonte

close #823 座号分组

liqk 3 anos atrás
pai
commit
b6201bda1b

+ 2 - 1
TEAMModelOS/ClientApp/src/view/classmgt/ManageClass.vue

@@ -623,7 +623,8 @@ export default {
             this.$api.schoolSetting.getStusByClassId(params).then(
                 (res) => {
                     if (!res.error) {
-                        this.classList[this.curClassIndex].students = res.list.length ? res.list[0].students : []
+                        this.$set(this.classList[this.curClassIndex],'students',res.list.length ? res.list[0].students : [])
+                        // this.classList[this.curClassIndex].students = res.list.length ? res.list[0].students : []
                     } else {
                         this.$Message.error('API error!')
                     }