diff --git a/ui/console-src/modules/contents/pages/SinglePageEditor.vue b/ui/console-src/modules/contents/pages/SinglePageEditor.vue index 3f217e99c..6287f2e5c 100644 --- a/ui/console-src/modules/contents/pages/SinglePageEditor.vue +++ b/ui/console-src/modules/contents/pages/SinglePageEditor.vue @@ -431,9 +431,6 @@ async function handleUploadImage(file: File, options?: AxiosRequestConfig) { if (!currentUserHasPermission(["uc:attachments:manage"])) { return; } - if (!isUpdateMode.value) { - await handleSave(); - } const { data } = await ucApiClient.storage.attachment.createAttachmentForPost( { diff --git a/ui/console-src/modules/contents/posts/PostEditor.vue b/ui/console-src/modules/contents/posts/PostEditor.vue index 17cc5cb01..f55527c48 100644 --- a/ui/console-src/modules/contents/posts/PostEditor.vue +++ b/ui/console-src/modules/contents/posts/PostEditor.vue @@ -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, diff --git a/ui/uc-src/modules/contents/posts/PostEditor.vue b/ui/uc-src/modules/contents/posts/PostEditor.vue index 1de04b98d..50f4524a6 100644 --- a/ui/uc-src/modules/contents/posts/PostEditor.vue +++ b/ui/uc-src/modules/contents/posts/PostEditor.vue @@ -422,9 +422,6 @@ async function handleUploadImage(file: File, options?: AxiosRequestConfig) { if (!currentUserHasPermission(["uc:attachments:manage"])) { return; } - if (!isUpdateMode.value) { - await handleCreate(); - } const { data } = await ucApiClient.storage.attachment.createAttachmentForPost( {