feat: 本地回复数据fixed

This commit is contained in:
tim
2025-08-10 12:26:22 +08:00
parent 8c1386a2d0
commit 2a5bff1086
4 changed files with 15 additions and 10 deletions

View File

@@ -47,6 +47,10 @@ export default {
showLoginOverlay: {
type: Boolean,
default: false
},
parentUserName: {
type: String,
default: ''
}
},
components: { LoginOverlay },
@@ -71,7 +75,7 @@ export default {
if (!vditorInstance.value || isDisabled.value) return
const value = vditorInstance.value.getValue()
console.debug('CommentEditor submit', value)
emit('submit', value, () => {
emit('submit', props.parentUserName, value, () => {
if (!vditorInstance.value) return
vditorInstance.value.setValue('')
text.value = ''