Update environment configuration and enhance asset loading:

- Change development API proxy target to `https://192.168.3.233` and set base URL for recurring investment.
- Introduce `.env.production` for production environment with similar settings.
- Modify `loadExchangeAssets` to support pagination and scrolling for asset loading, improving user experience.
- Update related documentation and internationalization files for new features.
This commit is contained in:
justin
2026-10-10 16:24:01 +08:00
parent ffba1861be
commit 57b026d7d0
15 changed files with 286 additions and 60 deletions
+3 -2
View File
@@ -14,7 +14,7 @@ npm install
npm run dev
```
默认开发地址:`http://localhost:5173/`。`vite.config.ts` 已设置 `server.host: true`,启动后终端会打印 **Network** 地址,同网段设备可用本机 IP 访问(如 `http://192.168.x.x:5173/`);经内网穿透或自定义域名访问时依赖 `allowedHosts: true`。
默认开发地址:`http://localhost:5173/recurring-investment/`(由 `.env.development` 的 `VITE_BASE_URL` 决定,对应 Vite `base` 与 Vue Router `history`)。`vite.config.ts` 已设置 `server.host: true`,启动后终端会打印 **Network** 地址,同网段设备可用本机 IP 访问(如 `http://192.168.x.x:5173/recurring-investment/`);经内网穿透或自定义域名访问时依赖 `allowedHosts: true`。
未带查询参数时,语言为繁体(`lang=tw`)、主题为深色(`theme=dark`)。
@@ -29,7 +29,8 @@ npm run preview # 预览生产构建
| 文件 | 变量 | 说明 |
|------|------|------|
| `.env.development` | `VITE_API_BASE_URL` | 接口基础路径,默认 `/api` |
| `.env.development` / `.env.production` | `VITE_API_BASE_URL` | 接口基础路径,默认 `/api` |
| 同上 | `VITE_BASE_URL` | 应用部署子路径,默认 `/recurring-investment`(写入 Vite `base`) |
## URL 查询参数