fix: event

This commit is contained in:
shaohuzhang1 2025-01-20 20:43:49 +08:00
parent b758c9ef91
commit 9e5352b8d7

View File

@ -16,7 +16,7 @@ import bus from '@/bus'
import { ref, nextTick, onMounted } from 'vue' import { ref, nextTick, onMounted } from 'vue'
import { t } from '@/locales' import { t } from '@/locales'
const isOpen = ref<boolean>(false) const isOpen = ref<boolean>(false)
const eventVal = ref() const eventVal = ref<any>({})
function getSelection() { function getSelection() {
const selection = window.getSelection() const selection = window.getSelection()
if (selection && selection.anchorNode == null) { if (selection && selection.anchorNode == null) {