判断最终导入的区域是不是在另一个区域内 1. 工作项目中 也为同一个页面多次用到弹框,因此就为弹框单独写一个方法 popBox(item){ return new Promise(resolve=>{ this.$confirm(.............).then(()=>{ resolve(false) // resolve()中根据实际情况需要来写 }).catch(()=>{ resolve(true) }) }) } 2. 循环中的多次判断 if(await this.popBox(item)){ return }