From b979b3315aa82d358b2f954085a4ea5537bb74a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=95=E9=98=B3=E5=BE=AE=E7=AC=911?= <12457268+sunset-smile-1@user.noreply.gitee.com> Date: Thu, 2 Jan 2025 21:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=B6=E6=96=87=E6=9C=AC=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editor/index.vue b/src/components/editor/index.vue index 6273949..b927cd2 100644 --- a/src/components/editor/index.vue +++ b/src/components/editor/index.vue @@ -93,7 +93,7 @@ state.editorConfig.MENU_CONF['uploadImage'] = { formdata.append('file', file); if(file.type.includes('image')){ let res = await artApi.uploadFile(formdata); - if(res?.success) insertFn(encodeURI(res.data.path), res.data.title, '#') + if(res?.success) insertFn(encodeURI(viteUrl+res.data.path), res.data.title, '#') else ElMessage.error('图片上传失败!'); }else{ ElMessage.error('上传图片格式错误!');