getAction(this.url.list, {"search": {"materialParam": 670}}).then((res) => {
if (res && res.code === 200) {
this.$notification.success({
message: '提示',
description: "注册成功,请使用该租户登录!",
duration: 5
});
if (res.data) {
let mList = res.data
console.log(this.mList)
this.dataSource = res.data.rows
console.log(res.data.rows.code)
}
}
})
重点是这个代码
if (res && res.code === 200) {
this.$notification.success({
message: '提示',
description: "注册成功,请使用该租户登录!",
duration: 5
});