From 608c6fea8e617a2ab34e3cf0ed64d58d021f5b13 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期一, 24 六月 2024 15:34:46 +0800 Subject: [PATCH] 修改完333错误 --- ruoyi-ui/src/api/secret/index.js | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/api/secret/index.js b/ruoyi-ui/src/api/secret/index.js index 5a4677e..e7adf51 100644 --- a/ruoyi-ui/src/api/secret/index.js +++ b/ruoyi-ui/src/api/secret/index.js @@ -13,11 +13,11 @@ // 鏍规嵁id鏌ヨ鎵�鏈夋敹鏀彴璐︿俊鎭� -export function getSecretInfo(id) { +export function getSecretInfo(query) { return request({ - url: '/zSecret/' + id, + url: '/zSecret', method: 'get', - + params: query }) } //鏂板鏀舵敮鍙拌处 @@ -49,7 +49,7 @@ //涓婁紶鏂囦欢 export function uploadPic(data) { return request({ - url: '/common/upload', + url: '/common/uploads', method: 'post', data: data }) @@ -63,5 +63,19 @@ responseType: 'blob' }) } +export function enload(data) { + return request({ + url: '/zSecret/importData', + method: 'post', + data: data + }) +} - +export function getCategory() +{ + return request({ + url: '/zSecret/type', + method: 'get', + // params: {'id':22} + }) +} \ No newline at end of file -- Gitblit v1.9.1