|
@@ -412,12 +412,29 @@ export default {
|
|
|
* @description t跳转editer编辑器
|
|
|
*/
|
|
|
goToEditer() {
|
|
|
- const data = `categoryId=${this.categoryId}&projectId=${this.projectId}&BuildingID=1&FloorID=${this.floorId}&FloorName=${this.floorName}&fmapID=${this.fmapID}`;
|
|
|
- const url =
|
|
|
- window.location.origin +
|
|
|
- "/wandaEditer/editer?" +
|
|
|
- encodeURIComponent(data);
|
|
|
- window.open(url, true);
|
|
|
+ setTimeout(() => {
|
|
|
+ const token = this.$store.getters["token"];
|
|
|
+ const data = `categoryId=${this.categoryId}&projectId=${this.projectId}&BuildingID=1&FloorID=${this.floorId}&FloorName=${this.floorName}&fmapID=${this.fmapID}&token=${token}`;
|
|
|
+ const url =
|
|
|
+ window.location.origin +
|
|
|
+ "/wandaEditer/editer?" +
|
|
|
+ encodeURIComponent(data);
|
|
|
+ window.open(url, true);
|
|
|
+ // 发布成功跳转草稿箱
|
|
|
+ // const token = this.$store.getters["token"];
|
|
|
+ // this.$router.push({
|
|
|
+ // path: "editer",
|
|
|
+ // query: {
|
|
|
+ // categoryId: this.categoryId,
|
|
|
+ // projectId: this.projectId,
|
|
|
+ // BuildingID: 1,
|
|
|
+ // FloorName: this.floorName,
|
|
|
+ // FloorID: this.floorId,
|
|
|
+ // fmapID: this.fmapID,
|
|
|
+ // token:token
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ }, 1000);
|
|
|
},
|
|
|
// 切换草稿箱楼层
|
|
|
checkFloor(floorid) {
|
|
@@ -470,7 +487,7 @@ export default {
|
|
|
this.getLegend();
|
|
|
}
|
|
|
});
|
|
|
- },100);
|
|
|
+ }, 100);
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|