Comments (2)
可以 进入到 example/vue2 的文件夹下
tyarn 或 cnpm i 后,
npm run dev
得到和启动vue2页面,得到该页面地址后 比如是:http://localhost:8000 等 ,配置antdFront/src/config/route.js:
{
name: "微前端",
path: "/micro",
icon: "PaperClipOutlined",
children: [
// {
// name: "material-ui",
// path: "material/*",
// access: "microOpen",
// component: "http://localhost:8002" // 微前端配置
// },
{
name: "vue2测试",
path: "vue2/*",
access: "microOpen",
component: "http://localhost:8000", // 微前端配置
},
]
}
找到以上部分,将该处的component 改成 vue2的地址。
后npm run dev 即可查看到效果...
from antdfront.
nice,谢谢!
from antdfront.
Related Issues (20)
- 项目在本地运行报错 HOT 17
- 登录态保持? HOT 1
- 点击后会报错 HOT 2
- 想问一下,能不能出一份umi的版本 HOT 7
- 项目本地启动报错 HOT 7
- Trying to get in touch regarding a security issue HOT 3
- 启动后webpack报错 HOT 3
- 路由变化后会自动跳转到登录页面 HOT 2
- 点击菜单会出现错误 HOT 11
- as developer i wan to have a react example HOT 11
- 有计划升级成ts吗 HOT 8
- 【BUG】状态保存 HOT 4
- 当tab遇到qiankun HOT 2
- 微应用内部跳转,刷新页面报错 HOT 12
- 大哥,你这个迁移完成了吗? HOT 3
- 哥哥,你这个做到了微前端主体的多标签嘛,还能保留状态. HOT 12
- npm run dev 运行不起来 HOT 6
- 大哥,可以用vite 来构建项目吗 HOT 2
- recoil 的API太晦涩了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antdfront.