yink #17

Merged
yinkang merged 46 commits from yink into dev 2025-07-07 07:15:25 +00:00
Showing only changes of commit 0b634e8cdd - Show all commits

View File

@ -704,6 +704,8 @@ function onSendMessage() {
editor.value?.commands.clearContent(true)
//
quoteData.value = null
// 稿
onEditorChange()
}
}
@ -790,6 +792,17 @@ function onSubscribeQuote(data) {
//
quoteData.value = data
// 稿
onEditorChange()
}
/**
* 清空引用数据并更新草稿
*/
function clearQuoteData() {
quoteData.value = null
// 稿
onEditorChange()
}
/**
@ -894,7 +907,7 @@ useEventBus([
<div class="quote-card-content">
<div class="quote-card-title">
<span>{{ quoteData.title || ' ' }}</span>
<n-icon size="18" class="quote-card-remove" :component="Close" @click="quoteData = null" />
<n-icon size="18" class="quote-card-remove" :component="Close" @click="clearQuoteData" />
</div>
<div v-if="quoteData.image" class="quote-card-image">
<img :src="quoteData.image" alt="引用图片" />