|
@@ -97,8 +97,12 @@ export default {
|
|
break;
|
|
break;
|
|
case "publish":
|
|
case "publish":
|
|
publishGraph(pa).then(res => {
|
|
publishGraph(pa).then(res => {
|
|
- this.$message.success("发布成功");
|
|
|
|
- this.$emit('publishSuc')
|
|
|
|
|
|
+ if (res.result == "success") {
|
|
|
|
+ this.$message.success("发布成功");
|
|
|
|
+ this.$emit('publishSuc')
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.success("发布失败");
|
|
|
|
+ }
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
}
|
|
}
|