vue/.qoder/repowiki/knowledge/zh/网盘管理跨端应用/架构设计.md

4 lines
625 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- **前端架构**:采用 Vite + Vue 3 (Composition API) 技术栈,通过 `src/api/index.js` 封装 RESTful 请求并处理 Token 鉴权。
- **跨端桥接**:利用 Capacitor 8 将 Web 应用(`dist` 目录)嵌入原生 Android Shell (`BridgeActivity`),实现从 Web 到 Native 的无缝转换。
- **配置管理**:通过 `capacitor.config.json` 定义应用 ID、启动屏及状态栏样式并通过 `vite.config.js` 代理后端 API 请求。
- **构建流程**遵循“Vite 构建 Web -> Cap sync 同步资源 -> Gradle 编译 APK”的标准化流水线`build-apk.bat` 脚本自动化执行。