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