fix: 修改newapi接口为a1.aizex.me
This commit is contained in:
parent
4b2a05fce8
commit
f6abb7a850
@ -7,7 +7,7 @@ export default [
|
|||||||
|
|
||||||
{ path: '/home', name :"首页", icon: "PieChartOutlined", component: './HomePage' },
|
{ path: '/home', name :"首页", icon: "PieChartOutlined", component: './HomePage' },
|
||||||
{ path: '/add_chart', name :"智能分析", icon: "barChart", component: './AddChart' },
|
{ 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: '/report', name: "报告中心", icon: "commentOutlined", component: './Report' },
|
||||||
{ path: '/code', name: "代码分析", icon: "GithubOutlined", component: './Code' },
|
{ path: '/code', name: "代码分析", icon: "GithubOutlined", component: './Code' },
|
||||||
{ path: '/Forecast', name :"分析中心", icon: "ApiOutlined", component: './Forecast' },
|
{ path: '/Forecast', name :"分析中心", icon: "ApiOutlined", component: './Forecast' },
|
||||||
|
@ -70,7 +70,7 @@ const CodeAnalysisPage: React.FC = () => {
|
|||||||
}
|
}
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://aizex.top/v1/chat/completions', {
|
const response = await fetch('https://a1.aizex.me/v1/chat/completions', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -119,7 +119,7 @@ const AnalysisCenter: React.FC = () => {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://aizex.top/v1/chat/completions', {
|
const response = await fetch('https://a1.aizex.me/v1/chat/completions', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@ -201,7 +201,7 @@ const AnalysisCenter: React.FC = () => {
|
|||||||
textContent = jsonData.map(row => row.join('\t')).join('\n');
|
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',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -98,7 +98,7 @@ const ReportPage: React.FC = () => {
|
|||||||
|
|
||||||
const analyzeData = async (content: any) => {
|
const analyzeData = async (content: any) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://aizex.top/v1/chat/completions', {
|
const response = await fetch('https://a1.aizex.me/v1/chat/completions', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@ -189,7 +189,7 @@ const handleDownload = async () => {
|
|||||||
const generateReport = async () => {
|
const generateReport = async () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://aizex.top/v1/chat/completions', {
|
const response = await fetch('https://a1.aizex.me/v1/chat/completions', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user