gemercheung 2 سال پیش
والد
کامیت
96b8305320

+ 1 - 1
packages/qjkankan-editor/.eslintrc.js

@@ -16,7 +16,7 @@ module.exports = {
     'no-unused-vars': 'off',
   },
   "parserOptions": {
-    "ecmaVersion": 7,
+    "ecmaVersion": 2020,
     "sourceType": "module"
   }
 }

+ 1 - 8
packages/qjkankan-editor/src/views/hotspot/EditPanel.vue

@@ -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);
   },

+ 1 - 1
packages/qjkankan-editor/src/views/hotspot/hotspotType/imageText.vue

@@ -92,7 +92,7 @@
           @click.stop="hotspot.imageTextInfo.audio = {}"
         ></i>
       </div>
-      <button class="change-btn" @click="isShowImageSelect = true">
+      <button class="change-btn" @click="isShowAudioSelect = true">
         <i class="iconfont icon-editor_update"></i>
         {{ $i18n.t("hotspot.change_audio") }}
       </button>