fix: check login in zen mode (#2258)
parent
9ae0d9b744
commit
603e10b6ca
|
@ -12,6 +12,8 @@ const emit = defineEmits<{
|
||||||
(event: 'afterEdit'): void
|
(event: 'afterEdit'): void
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
const focusEditor = inject<typeof noop>('focus-editor', noop)
|
||||||
|
|
||||||
const { details, command } = $(props)
|
const { details, command } = $(props)
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
@ -97,8 +99,10 @@ async function deleteAndRedraft() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function reply() {
|
function reply() {
|
||||||
|
if (!checkLogin())
|
||||||
|
return
|
||||||
if (details) {
|
if (details) {
|
||||||
// TODO focus to editor
|
focusEditor()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const { key, draft } = getReplyDraft(status)
|
const { key, draft } = getReplyDraft(status)
|
||||||
|
|
Loading…
Reference in New Issue