0
点赞
收藏
分享

微信扫一扫

前端那些事20240115-前端那些事-验证组批号不能重复添加

慎壹 03-19 11:45 阅读 3


try {
        this.tableData.forEach(item => {
            if (item.groupNo === form.groupNo) {
              throw {code: -9, msg: `${form.groupNo}已存在,不能重复添加`}
            }
        })
      } catch (e) {
        if (e && e.code === -9) {
          return this.$message.error(e.msg)
        }
      }

举报

相关推荐

0 条评论