From f0a6ed39258cd445278f9e726e5b839605e02d57 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期六, 18 五月 2024 17:00:59 +0800 Subject: [PATCH] 修改了安卓端上传图片无法显示问题 --- ruoyi-ui/src/api/collection/index.js | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/api/collection/index.js b/ruoyi-ui/src/api/collection/index.js index 609f1d7..14bf1d0 100644 --- a/ruoyi-ui/src/api/collection/index.js +++ b/ruoyi-ui/src/api/collection/index.js @@ -57,7 +57,7 @@ //涓婁紶鏂囦欢 export function uploadPic(data) { return request({ - url: '/common/upload', + url: '/common/uploads', method: 'post', data: data }) @@ -71,12 +71,12 @@ responseType: 'blob' }) } -//瀵煎叆妯℃澘 -export function downloadModel(data) { + +//瀵煎叆 +export function enload(data) { return request({ - url: '/zfCollection/model', - method: 'get', - params: data, - responseType: 'blob' + url: '/zfCollection/importData', + method: 'post', + data: data }) } -- Gitblit v1.9.1