refactor: 分页响应数据结构调整
This commit is contained in:
@@ -64,9 +64,9 @@ const editorConfig = ref<Partial<IEditorConfig>>({
|
||||
uploadImage: {
|
||||
customUpload(file: File, insertFn: InsertFnType) {
|
||||
// 上传图片
|
||||
FileAPI.uploadFile(file).then((res) => {
|
||||
FileAPI.uploadFile(file).then((data) => {
|
||||
// 插入图片
|
||||
insertFn(res.url, res.name, res.url);
|
||||
insertFn(data.url, data.name, data.url);
|
||||
});
|
||||
},
|
||||
} as any,
|
||||
|
||||
Reference in New Issue
Block a user