From 8094a6598da967f6ed64c5e378b51479f6719537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Wed, 2 Jul 2025 13:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BF=A1=E4=BB=A3=E7=A0=81=E5=BA=93-A?= =?UTF-8?q?I=E4=BF=AE=E5=A4=8D=E5=BB=BA=E8=AE=AE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jyh/index.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index d13a381..0882260 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -268,14 +268,20 @@ export const getReleaseExport = (data): Promise => { // 获取AI修复建议 export function getVulSuggestion(data) { - return axios.request({ - url: '/gateway/detect' + `/ai/vul_suggestion`, + return request({ + url: `/ai/vul_suggestion`, method: 'POST', data, - headers: { - Authorization: 'Bearer ' + localStorage.getItem('access_token'), - }, }); + + // return axios.request({ + // url: '/gateway/detect' + `/ai/vul_suggestion`, + // method: 'POST', + // data, + // headers: { + // Authorization: 'Bearer ' + localStorage.getItem('access_token'), + // }, + // }); } // 许可证信息详情 export const getLicenseDetail = ({ id }): Promise => {