|
@@ -249,12 +249,8 @@ export default {
|
|
|
},
|
|
|
hotspot: {
|
|
|
handler(val) {
|
|
|
- // console.error("this.hotspot", val);
|
|
|
console.warn("hotspot", val);
|
|
|
this.$bus.emit("edithotspot", val);
|
|
|
- // console.log("this.$bus", this.$bus);
|
|
|
- // this.$getKrpano().call("removeJQHotspot(" + val.name + ");");
|
|
|
- // this.$bus.emit("addhotspot", val);
|
|
|
},
|
|
|
deep: true,
|
|
|
},
|
|
@@ -322,10 +318,6 @@ export default {
|
|
|
// },
|
|
|
// },
|
|
|
},
|
|
|
-
|
|
|
- beforeDestroy() {
|
|
|
- this.$bus.removeListener("resethotspotTitle", this.listerFnReset);
|
|
|
- },
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
hotspot: "hotspot",
|
|
@@ -477,6 +469,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
+ this.$bus.removeListener("resethotspotTitle", this.listerFnReset);
|
|
|
this.$bus.off("edithotspot", this.handleEditHotspot);
|
|
|
this.$bus.off("delhotspot", this.cancel);
|
|
|
},
|