mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
fix: resolve potential exception during bulk image upload in post creation (#6276)
Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
@@ -456,10 +456,6 @@ async function handleUploadImage(file: File, options?: AxiosRequestConfig) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isUpdateMode.value) {
|
||||
await handleSave();
|
||||
}
|
||||
|
||||
const { data } = await ucApiClient.storage.attachment.createAttachmentForPost(
|
||||
{
|
||||
file,
|
||||
|
||||
Reference in New Issue
Block a user