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

前端那些事20240123-前端那些事-avue2 增加重复认证_前端