补充提交api地址错误问题

master
学习很差啦 2022-12-07 10:42:47 +08:00
parent 8378182730
commit 2446c28b20
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import plugins from "./plugins"; import plugins from "./plugins";
import toobar from "./toolbar"; import toobar from "./toolbar";
import { upLoadFileMethods } from "@/api/common"; import { upLoadFile } from "@/api/common";
export const initEditor = { export const initEditor = {
height: "400px", height: "400px",
@ -18,7 +18,7 @@ export const initEditor = {
const formData = new FormData(); const formData = new FormData();
formData.append("file", blobInfo.blob()); formData.append("file", blobInfo.blob());
try { try {
const res = await upLoadFileMethods(formData); const res = await upLoadFile(formData);
if (res.result) { if (res.result) {
success(res.result) success(res.result)
} else { } else {