瀏覽代碼

发布失败提示

haojianlong 4 年之前
父節點
當前提交
f61fd8b799
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/components/homeView/topoImageCard.vue

+ 6 - 2
src/components/homeView/topoImageCard.vue

@@ -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;
       }
       }