更新 Vite 配置以使用 localhost,新增游戏完成时间戳和过期判断,优化链接生成逻辑,调整路由以支持路径参数,改进游戏界面状态显示

This commit is contained in:
yahaozhang
2025-11-03 20:58:22 +08:00
parent 23e2a4512b
commit fba18fc32c
5 changed files with 38 additions and 8 deletions

View File

@@ -27,7 +27,8 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: 'http://127.0.0.1:18080',
// target: 'https://uzi1.cn/api',
target: 'http://localhost:18080',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/api/, ''),
},