라이브 작성 블록 렌더링과 발행 시각 보정
This commit is contained in:
@@ -1545,6 +1545,12 @@ watch(publishStatus, (next) => {
|
||||
}
|
||||
})
|
||||
|
||||
watch(() => form.status, (next) => {
|
||||
if (next === 'published' && !toIsoDateTime(form.publishedAt)) {
|
||||
form.publishedAt = toDateTimeLocalValue(new Date().toISOString())
|
||||
}
|
||||
})
|
||||
|
||||
watch(serializedPostFingerprint, () => {
|
||||
if (!import.meta.client) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user