父文本图片还原
This commit is contained in:
parent
8a70642d3b
commit
b979b3315a
@ -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('上传图片格式错误!');
|
||||
|
Loading…
Reference in New Issue
Block a user