From f6abb7a850f51121e4128816dd7728db1bf688d1 Mon Sep 17 00:00:00 2001 From: sunhe <1279224279@qq.com> Date: Sat, 19 Apr 2025 22:06:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9newapi=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=BAa1.aizex.me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.ts | 2 +- src/pages/Code/index.tsx | 2 +- src/pages/Forecast/index.tsx | 4 ++-- src/pages/Report/index.tsx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/routes.ts b/config/routes.ts index 9d98e6e..30d6a21 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -7,7 +7,7 @@ export default [ { path: '/home', name :"首页", icon: "PieChartOutlined", component: './HomePage' }, { path: '/add_chart', name :"智能分析", icon: "barChart", component: './AddChart' }, - { path: '/add_async', name: "智能分析(异步)", icon: "DotChartOutlined", component: './AddChartAsync' }, + { path: '/add_async', name: "异步分析", icon: "DotChartOutlined", component: './AddChartAsync' }, { path: '/report', name: "报告中心", icon: "commentOutlined", component: './Report' }, { path: '/code', name: "代码分析", icon: "GithubOutlined", component: './Code' }, { path: '/Forecast', name :"分析中心", icon: "ApiOutlined", component: './Forecast' }, diff --git a/src/pages/Code/index.tsx b/src/pages/Code/index.tsx index ceae0e8..69bf105 100644 --- a/src/pages/Code/index.tsx +++ b/src/pages/Code/index.tsx @@ -70,7 +70,7 @@ const CodeAnalysisPage: React.FC = () => { } setLoading(true); try { - const response = await fetch('https://aizex.top/v1/chat/completions', { + const response = await fetch('https://a1.aizex.me/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/src/pages/Forecast/index.tsx b/src/pages/Forecast/index.tsx index 487c81d..5fb2c64 100644 --- a/src/pages/Forecast/index.tsx +++ b/src/pages/Forecast/index.tsx @@ -119,7 +119,7 @@ const AnalysisCenter: React.FC = () => { setLoading(true); try { - const response = await fetch('https://aizex.top/v1/chat/completions', { + const response = await fetch('https://a1.aizex.me/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -201,7 +201,7 @@ const AnalysisCenter: React.FC = () => { textContent = jsonData.map(row => row.join('\t')).join('\n'); } - const response = await fetch('https://aizex.top/v1/chat/completions', { + const response = await fetch('https://a1.aizex.me/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/src/pages/Report/index.tsx b/src/pages/Report/index.tsx index 1771235..6819414 100644 --- a/src/pages/Report/index.tsx +++ b/src/pages/Report/index.tsx @@ -98,7 +98,7 @@ const ReportPage: React.FC = () => { const analyzeData = async (content: any) => { try { - const response = await fetch('https://aizex.top/v1/chat/completions', { + const response = await fetch('https://a1.aizex.me/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -189,7 +189,7 @@ const handleDownload = async () => { const generateReport = async () => { setLoading(true); try { - const response = await fetch('https://aizex.top/v1/chat/completions', { + const response = await fetch('https://a1.aizex.me/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json',