From 4a0345a05960c4633cf2a322eae664af675e435a Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Fri, 1 Mar 2024 03:32:56 +0900 Subject: [PATCH] feat: update `Draft`'s `scheduledAt` param --- components/publish/PublishWidget.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index d73503bc..5169d7bb 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -131,6 +131,10 @@ const expiresInDefaultOptionIndex = 2 const scheduleDateTime = ref('') +watchEffect(() => { + draft.value.params.scheduledAt = scheduleDateTime.value +}) + const characterCount = computed(() => { const text = htmlToText(editor.value?.getHTML() || '')