Kaynağa Gözat

feat: 保存部分 102 105

gemercheung 1 yıl önce
ebeveyn
işleme
ad88158248

+ 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() {