补充提交api地址错误问题
parent
8378182730
commit
2446c28b20
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue