refactor: message in view

This commit is contained in:
zerosoul
2022-04-18 17:09:11 +08:00
parent 474b5e3e91
commit 5b49731d21
3 changed files with 39 additions and 16 deletions
+1
View File
@@ -111,6 +111,7 @@ const Plugins = ({
createImagePlugin({
options: {
uploadImage: async (dataUrl) => {
console.log("upload image", dataUrl);
const resp = await fetch(dataUrl);
const blob = await resp.blob();
const { thumbnail, ...rest } = await uploadFile(blob);