diff --git a/src/components/editor/index.vue b/src/components/editor/index.vue index b927cd2..6273949 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(viteUrl+res.data.path), res.data.title, '#') + if(res?.success) insertFn(encodeURI(res.data.path), res.data.title, '#') else ElMessage.error('图片上传失败!'); }else{ ElMessage.error('上传图片格式错误!');