diff --git a/main/src/apis/common/index.js b/main/src/apis/common/index.js new file mode 100644 index 0000000..1890406 --- /dev/null +++ b/main/src/apis/common/index.js @@ -0,0 +1,15 @@ +import request from '@/utils/axios'; + +/** + * @Title: 上传图片 + */ +export function CommonUpload(data, params) { + return request({ + url: `/upload`, + method: 'POST', + apisType: 'upload', + uploadType: 'multipart/form-data', + data, + params, + }); +} diff --git a/main/src/components/custom-rich-editor/index.vue b/main/src/components/custom-rich-editor/index.vue index 1e4bad9..6cca864 100644 --- a/main/src/components/custom-rich-editor/index.vue +++ b/main/src/components/custom-rich-editor/index.vue @@ -7,7 +7,7 @@ --> -