From 09d07561843f7c00741791e0f07f6c11395c5b86 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Wed, 22 Oct 2025 14:47:22 +0000 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E5=88=A0=E9=99=A4=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/api.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/api.js b/frontend/api.js index e3a5aab..b84607a 100644 --- a/frontend/api.js +++ b/frontend/api.js @@ -1,11 +1,9 @@ const config = { - /* 请根据需求修改下列IP和端口 */ server: { - protocol: 'http', // 网络协议 - host: '192.168.193.141', // 主机IP - port: 5000 // 后端运行端口 + protocol: 'http', + host: '192.168.193.141', + port: 5000 } }; -/* 生成API链接 */ const API_BASE = `${config.server.protocol}://${config.server.host}:${config.server.port}/`; \ No newline at end of file