1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-15 05:19:58 +00:00

feat: update Draft's scheduledAt param

This commit is contained in:
TAKAHASHI Shuuji 2024-03-01 03:32:56 +09:00
parent 4f4f12d6e1
commit 4a0345a059
No known key found for this signature in database
GPG key ID: F15C887632129F5E

View file

@ -131,6 +131,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() || '')