fix: 更换后端端口 9949 -> 18080 解决 Windows 绑定权限问题

- 修改后端默认端口为 18080
- 更新前端 API 配置支持新端口
- 更新启动/停止脚本端口配置
- 添加 .env 配置文件
This commit is contained in:
祀梦
2026-04-04 13:37:17 +08:00
parent 38bd66128b
commit eeb16774d7
4 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import axios from 'axios'
import { showError } from '../utils/message'
/** @type {string} 默认 API 基础 URL */
export const DEFAULT_API_BASE_URL = 'http://localhost:9949'
export const DEFAULT_API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:18080'
/** @type {number} 请求超时时间(毫秒) */
export const REQUEST_TIMEOUT = 30000