const that = this
this.KaTeX parse error: Expected '}', got 'EOF' at end of input: …} = await that.http.delete(categories/${this.cateId}/attributes/${attrId}
)
if (res.meta.status !== 200) {
return that.$message.error('删除参数失败! ')
/* return this.$error({
title: '错误提示',
content: '删除参数失败!.',
}); */
}
that.$message.success('删除参数成功! ')
that.getParamsData()
},
onCancel() {
// 如果用户取消了删除
return that.$message.info('已取消删除')
// 去掉 return 为即时关闭对话框
}
})
// 另一种右侧弹窗 在.js文件中
// import { notification } from “ant-design-vue”;
// notification.error({
// message: “403”,
// description: "你没有权限访问, 请联系管理员咨询. "
// });