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',