Browse Source

分班错误提示修改

lrf 1 year ago
parent
commit
4dca13e8b3
1 changed files with 1 additions and 1 deletions
  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;
       // info.students = stuList;
       let res = await this.createClass(info);
-      if (this.$checkRes(res, '分班成功', '分班失败')) this.resetData();
+      if (this.$checkRes(res, '分班成功', res.errmsg || '分班失败')) this.resetData();
       //重置信息
       this.selectInfo = {
         male: 0,