diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts
index 67fb00c..814bd0c 100644
--- a/src/api/jyh/index.ts
+++ b/src/api/jyh/index.ts
@@ -72,9 +72,13 @@ export function getHomeNoticeList() {
// 获取依赖关系列表
export function getDepencyList(softwareId: string) {
return request({
- url: '/api/v1/repo/release/info',
- method: 'get',
- params: { softwareId: 2 }
+ url: '/api/v1/repo/dependency/info',
+ method: 'POST',
+ data: {
+ softwareId: 47,
+ current: 1,
+ size: 20
+ }
});
}
@@ -82,7 +86,24 @@ export function getDepencyList(softwareId: string) {
export function getRepairInfo() {
return request({
url: '/api/v1/repo/repair/info',
- method: 'get',
- params: {}
+ method: 'POST',
+ data: {
+ "current": 1,
+ "size": 10,
+ "softwareId": 47
+ }
+ });
+}
+
+// 获取许可证列表
+export function getLicenseList() {
+ return request({
+ url: '/api/v1/repo/license/list',
+ method: 'GET',
+ params: {
+ "current": 1,
+ "size": 10,
+ "softwareId": 47
+ }
});
}
diff --git a/src/views/Jyh/AIRepair/index.vue b/src/views/Jyh/AIRepair/index.vue
index f356e72..f73f259 100644
--- a/src/views/Jyh/AIRepair/index.vue
+++ b/src/views/Jyh/AIRepair/index.vue
@@ -68,6 +68,7 @@
import { ref } from 'vue';
import Panel from '@/components/AIRepair/Panel.vue';
import Table from '@/components/AIRepair/Table.vue';
+import { getRepairInfo } from '@/api/jyh';
const infoList = ref([
'当前代码主要风险为易受常见的注入攻击,包括命令注入、SQL注入、表达式注入,针对每种攻击,应提供相应的防范措施,如数据校验、使用安全函数和限制程序权限。',
@@ -200,6 +201,10 @@ const list = ref([
}
])
+const getInfo = async() => {
+ const res = await getRepairInfo();
+}
+getInfo();
diff --git a/src/views/Jyh/LicenseInfo/index.vue b/src/views/Jyh/LicenseInfo/index.vue
index 050bdc5..4b7a7e1 100644
--- a/src/views/Jyh/LicenseInfo/index.vue
+++ b/src/views/Jyh/LicenseInfo/index.vue
@@ -37,6 +37,7 @@