新增添加失败toast
This commit is contained in:
@@ -688,7 +688,20 @@ export default {
|
|||||||
erbanNo: this.resource.id,
|
erbanNo: this.resource.id,
|
||||||
referrer: this.resource.referrer,
|
referrer: this.resource.referrer,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.getData();
|
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() {
|
delClick() {
|
||||||
console.log(this.delDialogData.id);
|
console.log(this.delDialogData.id);
|
||||||
var guildId = this.delDialogData.id ;
|
var guildId = this.delDialogData.id;
|
||||||
dismiss({ guildId }).then((res) => {
|
dismiss({ guildId }).then((res) => {
|
||||||
console.log();
|
console.log();
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
Reference in New Issue
Block a user