# 投研平台 · 前端工程(Vue 3 + qiankun 微前端) Vue 3 + Vite + qiankun 微前端 + Vant 4 移动端子应用。 ## 子应用 | 子应用 | 技术 | 启动端口 | activeRule | | --- | --- | --- | --- | | main-app | Vue 3 · Pinia · qiankun 2.x | 8000 | `/` | | web-app | Vue 3 · Vite 4 · vite-plugin-qiankun | 7100 | `/web` | | mobile-app | Vue 3 · Vant 4 · Vite 4 · vite-plugin-qiankun | 7200 | `/mobile` | ## 启动 ```bash npm install # 方式一:全部一起启动(主应用 8000 + PC 7100 + 移动端 7200) npm run dev # 方式二:分开启动 npm run dev:main npm run dev:web npm run dev:mobile ``` 浏览器访问 http://localhost:8000,系统根据设备宽度自动分发到 PC 端(`/web`)或移动端(`/mobile`)。 ## 构建 ```bash npm run build ``` 产物分别在 `main-app/dist`、`web-app/dist`、`mobile-app/dist`。 ## 远端 - Gogs: http://47.116.201.158:3000/ligb/invest-research-frontend - SSH: ssh://ligb@47.116.201.158:ligb/invest-research-frontend.git - 后端仓库: http://47.116.201.158:3000/ligb/invest-research-backend.git