// 新增 / 修改
async addOrUpdateHandle(id, webType) {
if (webType == 1) {
this.diTableList = await this.getdiTableListALL(1)
} else {
this.diTableList = await this.getdiTableListALL(0)
}
},
getdiTableListALL(id) {
return new Promise((resolve, reject) => {
getdiTableList(id)
.then((res) => {
resolve(res.data)
})
.catch((err) => {
this.$message.error(err.message)
})
})
},
async/await
最新推荐文章于 2024-04-22 16:23:27 发布