Feat: 予約投稿の削除して編集を実装
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
parent
c95cbbc9b6
commit
28ee4d47c0
6 changed files with 40 additions and 10 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue