新增添加失败toast
This commit is contained in:
@@ -688,7 +688,20 @@ export default {
|
||||
erbanNo: this.resource.id,
|
||||
referrer: this.resource.referrer,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage({
|
||||
showClose: true,
|
||||
message: "添加成功",
|
||||
type: "success",
|
||||
});
|
||||
this.getData();
|
||||
} else {
|
||||
ElMessage({
|
||||
showClose: true,
|
||||
message: res.message,
|
||||
type: "error",
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 编辑按钮
|
||||
@@ -732,7 +745,7 @@ export default {
|
||||
// 解散按钮
|
||||
delClick() {
|
||||
console.log(this.delDialogData.id);
|
||||
var guildId = this.delDialogData.id ;
|
||||
var guildId = this.delDialogData.id;
|
||||
dismiss({ guildId }).then((res) => {
|
||||
console.log();
|
||||
if (res.code == 200) {
|
||||
|
Reference in New Issue
Block a user