From b1d00c06ca3412b202745d1b1316383e43604cb9 Mon Sep 17 00:00:00 2001 From: "yuan.ji" <961999367@qq.com> Date: Fri, 8 May 2026 21:29:41 +0800 Subject: [PATCH] fix(@vben/plugins): extract URL from response in image upload callback The upload callback was incorrectly passing the AxiosResponse object to resolve() instead of extracting the actual image URL string. This caused the editor to insert [object Object] as image src, resulting in broken images. --- playground/src/adapter/component/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playground/src/adapter/component/index.ts b/playground/src/adapter/component/index.ts index 970cd4e38..1e0c368cc 100644 --- a/playground/src/adapter/component/index.ts +++ b/playground/src/adapter/component/index.ts @@ -734,7 +734,8 @@ async function initComponentAdapter() { onProgress?.(percent); }, onSuccess(response) { - resolve(response); + // 从响应中提取图片URL + resolve(response?.data?.url ?? response?.url ?? ''); }, onError() { reject(new Error($t('ui.tiptap.upload.uploadFailed')));