diff --git a/.env.development b/.env.development index 9b1cd3b..df29f99 100644 --- a/.env.development +++ b/.env.development @@ -5,10 +5,10 @@ VITE_ENV = 'development' VITE_HOST = 'https://test.gitcode.net' # 接口地址 -VITE_API_HOST = '/gateway/official' +VITE_API_HOST = '/' # devPress接口地址 -VITE_DEV_API_HOST = '/gateway/official' +VITE_DEV_API_HOST = '/' # devPress地址 VITE_DEV_HOST = 'https://test.gitcode.net' diff --git a/src/router/interceptor.ts b/src/router/interceptor.ts index c88b94a..758148a 100644 --- a/src/router/interceptor.ts +++ b/src/router/interceptor.ts @@ -52,7 +52,7 @@ export const injectRouter = (router) => { // 判断命名空间类型 const globalStore = useGlobalInfoStore(); globalStore.setNamespaceType(-1); // 重置namespaceType,防止非组织路由请求组织信息 - globalStore.setLanguageList(); + // globalStore.setLanguageList(); if (to.meta.pageType === 'userOrOrg') { const { namespace } = to.params; const params = { diff --git a/src/views/Jyh/security/StatsGlass.vue b/src/views/Jyh/security/StatsGlass.vue new file mode 100644 index 0000000..46bda1b --- /dev/null +++ b/src/views/Jyh/security/StatsGlass.vue @@ -0,0 +1,196 @@ + + + + + diff --git a/src/views/Jyh/security/index.vue b/src/views/Jyh/security/index.vue index 7f8e31a..1c1cc37 100644 --- a/src/views/Jyh/security/index.vue +++ b/src/views/Jyh/security/index.vue @@ -7,44 +7,7 @@
-
- - - - - - - - - - - - - - - -
-
- 8000+ - 全球开源企业 -
-
-
- 600+ - 全球高校参与 -
-
-
- 10000+ - 全球社区活动 -
-
-
- 4亿+ - 全球开源项目 -
-
-
+ @@ -172,6 +135,7 @@ import { onMounted, ref, nextTick, watch, onUnmounted } from 'vue'; import * as echarts from 'echarts'; import { usePageResize } from '@/utils/hooks/usePageResize'; import ThreatIntelMap from './components/ThreatIntelMap.vue'; +import StatsGlass from '@/views/Jyh/security/StatsGlass.vue'; // 页面尺寸响应式 const { widthType } = usePageResize(); @@ -1423,16 +1387,6 @@ onMounted(() => { } } -.index-module__NV_5cW__titleSection { - color: #333; - z-index: 2; - flex-direction: column; - align-items: center; - gap: 1rem; - display: flex; - position: relative; -} - .index-module__NV_5cW__titleContainer { flex-wrap: wrap; justify-content: center; @@ -2025,110 +1979,4 @@ onMounted(() => { .chartCard__actionBtn--active:hover { background-color: #2563eb; } - -.stats-glass-bar { - display: flex; - align-items: center; - justify-content: space-between; - - /* 布局控制:撑满容器并增加内边距 */ - width: 100%; - padding: 2rem 4rem; - //margin: 2rem 0; - - /* 深色玻璃拟态背景 */ - background: rgba(255, 255, 255, 0.02); - backdrop-filter: blur(20px); - -webkit-backdrop-filter: blur(20px); - - /* 极细微的边框勾勒 */ - border-radius: 1rem; - border: 1px solid rgba(255, 255, 255, 0.08); - - /* 外阴影与内发光,增加悬浮感 */ - box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), - inset 0 0 20px rgba(255, 255, 255, 0.02); - - transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); - - &:hover { - border-color: rgba(56, 189, 248, 0.4); - background: rgba(255, 255, 255, 0.04); - transform: translateY(-2px); - } -} - -.stat-node { - flex: 1; - display: flex; - flex-direction: column; - align-items: center; - gap: 0.75rem; - transition: transform 0.3s ease; - - &:hover { - transform: scale(1.05); - .stat-value { - text-shadow: 0 0 25px rgba(56, 189, 248, 0.8); - } - } -} - -.stat-value { - /* 科技感亮蓝渐变 */ - font-family: "PingFang SC", "Microsoft YaHei", sans-serif; - font-size: 2.25rem; - font-weight: 800; - background: linear-gradient(180deg, #fff 0%, #38bdf8 100%); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - - /* 基础发光效果 */ - filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3)); - letter-spacing: -1px; -} - -.stat-desc { - /* 在黑底上使用半透明白色,更有高级感 */ - color: rgba(255, 255, 255, 0.6); - font-size: 0.875rem; - font-weight: 500; - letter-spacing: 0.1rem; - text-transform: uppercase; -} - -.stat-separator { - /* 渐隐分割线 */ - width: 1px; - height: 3rem; - background: linear-gradient( - to bottom, - rgba(255, 255, 255, 0), - rgba(255, 255, 255, 0.2), - rgba(255, 255, 255, 0) - ); - margin: 0 1rem; -} - -/* 响应式适配 */ -@media (max-width: 1024px) { - .stats-glass-bar { - padding: 2rem; - } - .stat-value { - font-size: 1.75rem; - } -} - -@media (max-width: 768px) { - .stats-glass-bar { - flex-direction: column; - gap: 2rem; - } - .stat-separator { - width: 50%; - height: 1px; - background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent); - } -} diff --git a/vite.config.ts b/vite.config.ts index b920e10..69b444c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -44,11 +44,11 @@ export default (config: any) => { // changeOrigin: true, // 允许跨域 // rewrite: (path) => path.replace('/gateway/official/u-auth', '/gateway/u-auth') // 重写路径 // }, - '/gateway': { + '/api': { // target: 'http://223.76.236.155:20011', // 目标服务器地址 - target: 'http://222.20.126.217:10010', // 目标服务器地址 + target: 'http://222.20.126.217:8100', // 目标服务器地址 changeOrigin: true, // 允许跨域 - rewrite: (path) => path.replace(/^\/gateway/, '/gateway'), // 重写路径 + rewrite: (path) => path.replace(/^\/api/, '/api'), // 重写路径 } } },