From 603e10b6ca27a9ece0d700f257bc500a314dfc53 Mon Sep 17 00:00:00 2001 From: Sma11X <540351143@qq.com> Date: Wed, 2 Aug 2023 18:27:31 +0800 Subject: [PATCH] fix: check login in zen mode (#2258) --- components/status/StatusActionsMore.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/status/StatusActionsMore.vue b/components/status/StatusActionsMore.vue index 0a69c8d6..56f78c79 100644 --- a/components/status/StatusActionsMore.vue +++ b/components/status/StatusActionsMore.vue @@ -12,6 +12,8 @@ const emit = defineEmits<{ (event: 'afterEdit'): void }>() +const focusEditor = inject('focus-editor', noop) + const { details, command } = $(props) const { @@ -97,8 +99,10 @@ async function deleteAndRedraft() { } function reply() { + if (!checkLogin()) + return if (details) { - // TODO focus to editor + focusEditor() } else { const { key, draft } = getReplyDraft(status)