Browse Source

feat: 保存部分 102 105

gemercheung 1 year ago
parent
commit
ad88158248
2 changed files with 3 additions and 1 deletions
  1. 1 0
      src/components/HotspotDialog-1.vue
  2. 2 1
      src/components/MsgContent.vue

+ 1 - 0
src/components/HotspotDialog-1.vue

@@ -497,6 +497,7 @@
       v-if="currentMsg.length"
       v-model:curIndex="curMsgIndex"
       :list="currentMsg"
+      @back="close"
     />
   </div>
 </template>

+ 2 - 1
src/components/MsgContent.vue

@@ -13,6 +13,7 @@
     <div
       class="msg-content__inner"
       v-html="curMsg"
+      @click="emits('back')"
     />
     <img
       style="width: 100%"
@@ -30,7 +31,7 @@
 import { computed, onBeforeUnmount, watch } from 'vue'
 
 const props = defineProps(['list', 'curIndex'])
-const emits = defineEmits(['update:cur-index', 'end'])
+const emits = defineEmits(['update:cur-index', 'end', 'back'])
 
 const _curIndex = computed({
   get() {