feat: update Draft's scheduledAt param

This commit is contained in:
TAKAHASHI Shuuji 2024-03-01 03:32:56 +09:00
parent 13f9aa28e3
commit 0883d1f226

View file

@ -134,6 +134,10 @@ const expiresInDefaultOptionIndex = 2
const scheduleDateTime = ref('') const scheduleDateTime = ref('')
watchEffect(() => {
draft.value.params.scheduledAt = scheduleDateTime.value
})
const characterCount = computed(() => { const characterCount = computed(() => {
const text = htmlToText(editor.value?.getHTML() || '') const text = htmlToText(editor.value?.getHTML() || '')