fix: 🐛 适配文件上传接口调整
This commit is contained in:
@@ -67,7 +67,7 @@ const editorConfig = ref<Partial<IEditorConfig>>({
|
||||
uploadImage: {
|
||||
customUpload(file: File, insertFn: InsertFnType) {
|
||||
// 上传图片
|
||||
FileAPI.upload(file).then((res) => {
|
||||
FileAPI.uploadFile(file).then((res) => {
|
||||
// 插入图片
|
||||
insertFn(res.url, res.name, res.url);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user