YaolongHan před 4 roky
rodič
revize
c59541b963
1 změnil soubory, kde provedl 3 přidání a 7 odebrání
  1. 3 7
      src/components/baseEditer.vue

+ 3 - 7
src/components/baseEditer.vue

@@ -495,13 +495,9 @@ export default {
         loadings.close();
         if (res.Result == "success") {
           this.$message.success("发布成功");
+          this
           setTimeout(() => {
-            const data = `categoryId=${this.urlMsg.categoryId}&projectId=${this.urlMsg.projectId}&BuildingID=${this.urlMsg.BuildingID}&FloorID=${this.urlMsg.FloorID}&fmapID=${this.urlMsg.fmapID}`;
-            const url =
-              window.location.origin +
-              "/wandaEditer/drafts?" +
-              encodeURIComponent(data);
-            window.open(url, true);
+            this.$router.push({ path: 'drafts', query: { categoryId: this.urlMsg.categoryId, projectId:this.urlMsg.projectId,BuildingID:this.urlMsg.BuildingID,FloorID:this.urlMsg.FloorID,fmapID:this.urlMsg.fmapID}})
           }, 1000);
         } else {
           this.$message.error(res.Message);
@@ -541,7 +537,7 @@ export default {
               this.graphId = res.Data;
               Message({
                 message: "保存成功!",
-                type: "error"
+                type: "success"
               });
               resolve(true);
             } else {