From 2446c28b203017124b4a723ea92ba2041a008f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Wed, 7 Dec 2022 10:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4api?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/components/editor/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/src/components/editor/config.js b/manager/src/components/editor/config.js index abf72d87..484b9106 100644 --- a/manager/src/components/editor/config.js +++ b/manager/src/components/editor/config.js @@ -1,6 +1,6 @@ import plugins from "./plugins"; import toobar from "./toolbar"; -import { upLoadFileMethods } from "@/api/common"; +import { upLoadFile } from "@/api/common"; export const initEditor = { height: "400px", @@ -18,7 +18,7 @@ export const initEditor = { const formData = new FormData(); formData.append("file", blobInfo.blob()); try { - const res = await upLoadFileMethods(formData); + const res = await upLoadFile(formData); if (res.result) { success(res.result) } else {