Browse Source

分班错误提示修改

lrf 1 năm trước cách đây
mục cha
commit
4dca13e8b3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/train-plan/classes.vue

+ 1 - 1
src/views/train-plan/classes.vue

@@ -170,7 +170,7 @@ export default {
       // // if (this.isOutRange(stuList)) return;
       // // if (this.isOutRange(stuList)) return;
       // info.students = stuList;
       // info.students = stuList;
       let res = await this.createClass(info);
       let res = await this.createClass(info);
-      if (this.$checkRes(res, '分班成功', '分班失败')) this.resetData();
+      if (this.$checkRes(res, '分班成功', res.errmsg || '分班失败')) this.resetData();
       //重置信息
       //重置信息
       this.selectInfo = {
       this.selectInfo = {
         male: 0,
         male: 0,