diff --git a/src/api/diy.ts b/src/api/diy.ts index 0f1b0043..f0ddfeaa 100644 --- a/src/api/diy.ts +++ b/src/api/diy.ts @@ -18,6 +18,25 @@ class DiyAPI { data, }); } + /** diy导入 */ + static import(data: FormData) { + return request({ + url: `diyapi/diyupload`, + method: 'post', + data, + headers: { + 'Content-Type': 'multipart/form-data', + }, + }); + } + /** diy导出 */ + static export(data: diy) { + return request({ + url: `diyapi/diydownload`, + method: 'post', + data, + }); + } } export default DiyAPI; diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue index 071eb677..3261c5df 100644 --- a/src/components/model-custom/model-custom-content.vue +++ b/src/components/model-custom/model-custom-content.vue @@ -9,10 +9,10 @@