mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 08:25:52 +08:00
补充提交api地址错误问题
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user