|
@@ -83,11 +83,16 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
+ "$route.name": {
|
|
|
+ handler() {
|
|
|
+ this.handleHiddenAllMasks();
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ },
|
|
|
"currentScene.id": {
|
|
|
handler(val, oldVal) {
|
|
|
if (val && val !== oldVal) {
|
|
|
this.applyToAll = false;
|
|
|
- console.error("screenID不同");
|
|
|
this.handleHiddenAllMasks();
|
|
|
}
|
|
|
},
|
|
@@ -158,10 +163,12 @@ export default {
|
|
|
},
|
|
|
handleHiddenAllMasks() {
|
|
|
if (this.$getKrpano()) {
|
|
|
- setTimeout(() => {
|
|
|
- this.$getKrpano().set("hotspot[peaklogo].visible", false);
|
|
|
- this.$getKrpano().set("hotspot[nadirlogo].visible", false);
|
|
|
- }, 500);
|
|
|
+ if (this.$route.name === "screen") {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$getKrpano().set("hotspot[peaklogo].visible", false);
|
|
|
+ this.$getKrpano().set("hotspot[nadirlogo].visible", false);
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
},
|