Explorar o código

分班错误提示修改

lrf hai 1 ano
pai
achega
4dca13e8b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,