From 80e0b09695493b7f811f746dfb7158244088afe3 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期日, 22 九月 2024 11:02:56 +0800 Subject: [PATCH] 修改了多个bug --- ruoyi-ui/src/api/self/index.js | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/api/self/index.js b/ruoyi-ui/src/api/self/index.js index b2617b0..d8a1ae5 100644 --- a/ruoyi-ui/src/api/self/index.js +++ b/ruoyi-ui/src/api/self/index.js @@ -5,7 +5,6 @@ return request({ url: '/self/user' , method: 'get', - }) } //鏇存柊涓汉淇℃伅 @@ -140,7 +139,14 @@ method: 'delete', }) } - +//璇佷欢绫诲瀷鏁版嵁 +export function listType(query) { + return request({ + url: '/zCertificate/type', + method: 'get', + params: query + }) +} // 鏌ヨ鍑哄浗鎯呭喌 export function getAbroadList() { return request({ @@ -206,11 +212,21 @@ export function addAutobiography(data) { return request({ - url: '/zAutobiography', + url: '/zAutobiography/', method: 'post', data: data }) } + +//鍒犻櫎涓汉鑷紶 +export function delAutobiography(ids) +{ + return request({ + url: '/zAutobiography/' +ids , + method: 'delete', + }) +} + //鎷垮埌涓汉鑷紶 export function getCategory() @@ -225,7 +241,7 @@ //涓婁紶鏂囦欢 export function uploadPic(data) { return request({ - url: '/common/upload', + url: '/common/uploads', method: 'post', data: data }) @@ -239,3 +255,4 @@ responseType: 'blob' }) } + -- Gitblit v1.9.1