Feat: 予約投稿の削除して編集を実装

Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
mattyatea 2023-11-26 05:18:59 +09:00
parent c95cbbc9b6
commit 28ee4d47c0
No known key found for this signature in database
GPG key ID: 068E54E2C33BEF9A
6 changed files with 40 additions and 10 deletions

View file

@ -37,8 +37,10 @@ const emit = defineEmits<{
const atDate = ref(formatDateTimeString(addTime(new Date(), 1, 'day'), 'yyyy-MM-dd'));
const atTime = ref('00:00');
if ( props.modelValue && props.modelValue.scheduledAt) {
atDate.value = atTime.value = props.modelValue.scheduledAt;
if ( props.modelValue.scheduledAt) {
const date = new Date(props.modelValue.scheduledAt);
atDate.value = formatDateTimeString(date, 'yyyy-MM-dd');
atTime.value = formatDateTimeString(date, 'HH:mm');
}
function get() {