@@ -118,6 +118,7 @@ app = FastAPI(
app.add_middleware(
CORSMiddleware,
allow_origins=[
+ "http://localhost:8000",
"http://localhost:3000",
"http://localhost:3001",
"http://localhost:5173", # Vite默认端口
@@ -91,9 +91,7 @@ python scripts/init_db.py
# 使用新的启动脚本(自动查找可用端口)
python run_server.py
-# 或者使用旧的启动方式
-python full_server.py
-```
+
#### 生产环境
```bash
@@ -150,7 +148,7 @@ python run_server.py
cd LQAdminFront
npm install
-npm run dev
+npm run dev-local
# 访问: http://localhost:3000
# 默认账号: admin / Admin123456
```