diff --git a/.env.pre b/.env.pre index 6dc1e09..847f281 100644 --- a/.env.pre +++ b/.env.pre @@ -2,13 +2,13 @@ VITE_ENV = 'pre' # 主域名 -VITE_HOST = 'https://pre.gitcode.com' +VITE_HOST = 'http://223.76.236.155:30010/openRepoPortal' # 接口地址 -VITE_API_HOST = 'https://pre-web-api.gitcode.com' +VITE_API_HOST = '/gateway/official' # devPress接口地址 -VITE_DEV_API_HOST = 'https://gitcode.com' +VITE_DEV_API_HOST = '/gateway/official' # devPress地址 VITE_DEV_HOST = 'https://gitcode.com' @@ -26,7 +26,7 @@ VITE_CSDN_URL = 'https://pre-web-api.gitcode.com/oauth/login/csdn' VITE_ORG_COMMUNITY = 'https://gitcode.com' # 静态资源域名 -VITE_STATIC_HOST = 'https://pre.gitcode.com' +VITE_STATIC_HOST = 'http://223.76.236.155:30010/openRepoPortal' # 主页搜索子应用 VITE_CHILD_HOMEWEB_HOST = 'https://pre-homepage-app.gitcode.com' @@ -36,3 +36,5 @@ VITE_USER_CENTER_HOST = 'https://pre-usercenter-app.gitcode.com' # ai-copilot 子应用 VITE_COPILOT_HOST = 'https://pre-copilot-app.gitcode.com' + +VITE_BASE_URL=/openRepoPortal/ diff --git a/package.json b/package.json index bfada84..c312fa9 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "axios": "^1.6.8", "canvas-confetti": "^1.9.2", "crypto-js": "^4.1.1", - "dayjs": "^1.11.9", + "dayjs": "^1.11.13", "devui-theme": "^0.0.7", "dompurify": "^3.0.5", "js-cookie": "^3.0.5", diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index ef3666c..54a92d9 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -103,9 +103,9 @@ export function getRepairInfo() { url: '/api/v1/repo/repair/info', method: 'POST', data: { - current: 1, - size: 10, - softwareId: 47 + "current": 1, + "size": 10, + "softwareId": 47 } }); } @@ -113,12 +113,12 @@ export function getRepairInfo() { // 获取许可证列表 export function getLicenseList() { return request({ - url: '/api/v1/repo/license/list', - method: 'GET', - params: { - current: 1, - size: 10, - softwareId: 47 + url: '/api/v1/repo/license/info', + method: 'POST', + data: { + "current": 1, + "size": 10, + "softwareId": 47 } }); } diff --git a/src/components/LicenseInfo/SidePanel.vue b/src/components/LicenseInfo/SidePanel.vue index e118232..9197f90 100644 --- a/src/components/LicenseInfo/SidePanel.vue +++ b/src/components/LicenseInfo/SidePanel.vue @@ -2,14 +2,14 @@
-

Apache License 2.0

+

{{ data.licenseName }}

分数 3 类型 - 获准的 + {{ data.category }}
@@ -78,7 +78,11 @@ diff --git a/src/components/TableSetting/index.vue b/src/components/TableSetting/index.vue index e0424bd..e5e3e28 100644 --- a/src/components/TableSetting/index.vue +++ b/src/components/TableSetting/index.vue @@ -2,7 +2,7 @@
设置 -
+
展示列设置 恢复默认 @@ -20,7 +20,7 @@
\ No newline at end of file + diff --git a/src/views/Jyh/Version/Detail/index.vue b/src/views/Jyh/Version/Detail/index.vue index 2036684..4aacd2e 100644 --- a/src/views/Jyh/Version/Detail/index.vue +++ b/src/views/Jyh/Version/Detail/index.vue @@ -44,13 +44,13 @@
- - - - - - - + + + + + + +
@@ -86,6 +86,7 @@ const ReleaseInfo = ref({ openSourceLicenseList: [], referenceInfo: {}, }); +const versionId = route.params.versionId; // 获取路由参数 versionId const getReleaseInfo = async(versionId) => { const { data, error } = await releaseInfo({ softwareId: versionId });