|
@@ -124,7 +124,6 @@ export default {
|
|
|
hotspotList: {
|
|
|
handler(newVal, oldVal) {
|
|
|
if (newVal && this.$route.name == "hotspot") {
|
|
|
- console.error("hotspot change");
|
|
|
this.$store.commit("scene/setSaveApiList", "hotspot");
|
|
|
}
|
|
|
},
|
|
@@ -164,10 +163,8 @@ export default {
|
|
|
// let hptarget = this.someData.hotspots.find((item) => item.name.toLowerCase() == data.hpname.toLowerCase());
|
|
|
|
|
|
let hptarget = this.hotspotList.findIndex((item) => item.name.toLowerCase() == data.hpname.toLowerCase());
|
|
|
-
|
|
|
- if (data.hpname.toLowerCase() == this.hotspot.name.toLowerCase()) {
|
|
|
+ if (this.hotspot && data.hpname.toLowerCase() == this.hotspot.name.toLowerCase()) {
|
|
|
//兼容新增
|
|
|
- console.error("兼容新增");
|
|
|
this.hotspot.ath = data.ath;
|
|
|
this.hotspot.atv = data.atv;
|
|
|
}
|
|
@@ -276,7 +273,6 @@ export default {
|
|
|
this.$msg.success(this.$i18n.t("hotspot.delete") + this.$i18n.t("hotspot.success"));
|
|
|
},
|
|
|
open(data) {
|
|
|
- console.error(data);
|
|
|
let hotspotData = null;
|
|
|
if (data.isAdd) {
|
|
|
this.editTitle = this.$i18n.t("hotspot.add");
|
|
@@ -401,7 +397,6 @@ export default {
|
|
|
|
|
|
console.log("hotspotData", hotspotData);
|
|
|
} else {
|
|
|
- console.error(123123);
|
|
|
hotspotData = browser.CloneObject(data);
|
|
|
/**
|
|
|
* v1.3新增
|
|
@@ -472,10 +467,8 @@ export default {
|
|
|
*/
|
|
|
}
|
|
|
this.$store.commit("hotspot/SetHotspot", hotspotData);
|
|
|
- console.error(this.isConfirmingPosi);
|
|
|
setTimeout(() => {
|
|
|
this.showPanel = true;
|
|
|
- console.error(this.isConfirmingPosi);
|
|
|
}, 100);
|
|
|
|
|
|
if (!data.isAdd) {
|