{"id":21314381,"url":"https://github.com/wocwin/wocwin-qiankun","last_synced_at":"2025-07-12T01:31:14.054Z","repository":{"id":162508869,"uuid":"601507145","full_name":"wocwin/wocwin-qiankun","owner":"wocwin","description":"基于 qiankun+vue2\u0026vue3+Vite3+vite-plugin-qiankun 技术栈实现的前端微应用架构，实现了主子应用切换，并做了简单的自动化脚本命令，可用一行命令所有子应用的依赖安装、启动以及打包部署。","archived":false,"fork":false,"pushed_at":"2024-07-11T06:16:03.000Z","size":26399,"stargazers_count":27,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T12:06:44.911Z","etag":null,"topics":["admin","element-plus","element-ui","qiankun","qiankun-vue","qiankun-vue-demo","vite","vite4","vue","vue3","webpack","wocwin"],"latest_commit_sha":null,"homepage":"https://wocwin.github.io/wocwin-qiankun/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wocwin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-14T08:02:04.000Z","updated_at":"2025-03-25T06:27:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"1863e4d6-846c-4e3f-9ee0-a778a4d6f6c5","html_url":"https://github.com/wocwin/wocwin-qiankun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wocwin/wocwin-qiankun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wocwin%2Fwocwin-qiankun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wocwin%2Fwocwin-qiankun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wocwin%2Fwocwin-qiankun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wocwin%2Fwocwin-qiankun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wocwin","download_url":"https://codeload.github.com/wocwin/wocwin-qiankun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wocwin%2Fwocwin-qiankun/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923080,"owners_count":23683716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","element-plus","element-ui","qiankun","qiankun-vue","qiankun-vue-demo","vite","vite4","vue","vue3","webpack","wocwin"],"created_at":"2024-11-21T18:12:36.206Z","updated_at":"2025-07-12T01:31:12.629Z","avatar_url":"https://github.com/wocwin.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wocwin-qiankun\n\n## 最终效果\n\n\u003cimg src=\"./public/qiankun_demo.gif\"\u003e\n\n## 介绍\n\n\u003e 基于 qiankun+vue2\u0026vue3+Vite3+vite-plugin-qiankun 技术栈实现的前端微应用架构，实现了主子应用切换（因为没有调用接口，vue2子应用的路由都是静态的，vue3是动态请求的路由），若想实现主子应用之间通信[可以参考这一篇博客](https://blog.csdn.net/cwin8951/article/details/128498395)，并做了简单的自动化脚本命令，可用一行命令所有子应用的依赖安装、启动以及打包部署。\n\n### 1、主应用介绍\n\n\u003e #### 技术栈 [Vue-cli4](https://cli.vuejs.org/zh/)+[Vue2](https://v2.cn.vuejs.org/)+[Element-Ui](http://element.eleme.io/#/zh-CN)+[qiankun](https://qiankun.umijs.org/zh)\n\n### 2、wocwin-vue2 子应用介绍\n\n\u003e #### 技术栈 [Vue-cli4](https://cli.vuejs.org/zh/)+[Vue2](https://v2.cn.vuejs.org/)+[Element-Ui](http://element.eleme.io/#/zh-CN)+[qiankun](https://qiankun.umijs.org/zh)\n\n### 3、wocwin-admin 子应用介绍\n\n\u003e #### 技术栈 Vue3.2 + TypeScript + Pinia + Vite4 + Element-Plus + 微前端(qiankun)\n\n## 项目运行\n\n1. 项目克隆\n\n```js\n// GitHub\ngit clone https://github.com/wocwin/wocwin-qiankun.git\n\n // Gitee\ngit clone https://gitee.com/wocwin/wocwin-qiankun.git\n```\n\n2. 依赖安装\n\n   ```bash\n   npm install\n   ```\n\n3. 项目启动\n\n   ```bash\n   npm run start\n   ```\n\n4. 本地运行\n\n```js\n// 1、运行完 npm run start\n// 2、打开http://localhost:8100/ 进入主应用\n// 3、逐个进入子应用（点击子应用左侧菜单栏logo可以回到主应用）\n// 4、主应用的系统管理是所有应用的公共模板（用户、角色、菜单、部门、微前端、字典等）\n```\n5. 若进入主应用点击无法进入子应用（先登录主应用，在浏览器新开页签单独进入各个子应用）\n\n6. 本地部署到服务器需要配置 NG（可以参考：nginx.conf 文件）\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwocwin%2Fwocwin-qiankun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwocwin%2Fwocwin-qiankun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwocwin%2Fwocwin-qiankun/lists"}