bug fixes
This commit is contained in:
@@ -72,7 +72,7 @@ const handleClickAdd = async () => {
|
|||||||
mediaItems.value.push(media);
|
mediaItems.value.push(media);
|
||||||
value.value.push(media.id);
|
value.value.push(media.id);
|
||||||
|
|
||||||
emits("update:modelValue", value);
|
emits("update:modelValue", value.value);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
/* empty */
|
/* empty */
|
||||||
@@ -97,7 +97,7 @@ const handleClickRemove = (media_id: string) => {
|
|||||||
mediaItems.value.splice(mediaIndex, 1);
|
mediaItems.value.splice(mediaIndex, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
emits("update:modelValue", value);
|
emits("update:modelValue", value.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -221,7 +221,6 @@ const handleSubmit = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(attachments.value, attachments);
|
|
||||||
await api.put({
|
await api.put({
|
||||||
url: `/posts/${post_id}/attachments`,
|
url: `/posts/${post_id}/attachments`,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
Reference in New Issue
Block a user