ds1.0
fanluyan 2 years ago
parent 30d8498fcb
commit a571b1f4e9

@ -117,7 +117,13 @@ export default {
updateChannelapi(this.formdata) updateChannelapi(this.formdata)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$message.success("修改成功"); // this.$message.success("");
this.$message({
duration: 1500,
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.deviceList(); this.$parent.deviceList();
this.isShow = false; this.isShow = false;
} else { } else {
@ -125,7 +131,13 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.$message.error("修改失败"); //this.$message.error("");
this.$message({
duration: 1500,
showClose: true,
message: "修改失败",
type: "error",
});
}); });
} }
} else { } else {

Loading…
Cancel
Save