foreach循环只支持return跳出,且只相当于contune,想要跳出foreach的循环只能使用try{}catch(e){}跳出,例: try { this.okrForm.krFormArr.forEach(item => { if (item.editStatus) { this.$message({ message: 'kr填写完成后再确认', type: 'warning' }) resolve(false) throw Error('error') } }) } catch (e) { console.log(e) }