From 610444214e4440749056574f8a198fb46c70d426 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期六, 20 四月 2024 18:25:23 +0800 Subject: [PATCH] 修改完成家庭资产备忘录添加图片和附件 --- ruoyi-ui/src/api/allmemo/index.js | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/ruoyi-ui/src/api/allmemo/index.js b/ruoyi-ui/src/api/allmemo/index.js index 2666b59..049e338 100644 --- a/ruoyi-ui/src/api/allmemo/index.js +++ b/ruoyi-ui/src/api/allmemo/index.js @@ -55,3 +55,21 @@ } //鏍规嵁id杩涜鏌ヨ +//涓婁紶鏂囦欢 +export function uploadPic(data) { + return request({ + url: '/common/uploads', + method: 'post', + data: data + }) +} + +//涓嬭浇鏂囦欢 +export function download(data) { + return request({ + url: '/common/downLoadFile', + method: 'get', + params: data, + responseType: 'blob' + }) +} -- Gitblit v1.9.1