open () {
let params = {
id: 1
}
this.$baseConfirm('你确定要删除当前项吗', null, async () => {
const {
data: { msg, code },
} = await this.service.epidemicPreventionDelete(params)
if (code == 1) {
this.$baseMessage(msg || '操作成功')
}
})
},
epidemicPreventionDelete是接口
params是要传的参数