First revision

This commit is contained in:
ldy
2025-06-10 12:02:57 +08:00
parent 4f79a72294
commit 97c73b639d
45 changed files with 103 additions and 964 deletions

View File

@@ -2,7 +2,7 @@
// Base URL for your Flask API - IMPORTANT: Adjust if your backend runs elsewhere
// 后端 Flask API 的基础 URL - 重要:如果后端运行在别处,请调整
const API_BASE_URL = 'http://localhost:5000'; // Assuming Flask runs on port 5000
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:5000'; // Assuming Flask runs on port 5000
// --- Helper function to get Auth Token ---
// --- 获取认证 Token 的辅助函数 ---