Skip to content

Commit 27bfab2

Browse files
committed
wip
1 parent 3dddfe2 commit 27bfab2

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

.umirc.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export default defineConfig({
1919
{ path: '/index', component: '@/pages/Index/index' },
2020
],
2121
fastRefresh: {},
22-
// qiankun: {
23-
// master: {
24-
// apps:[]
25-
// }
26-
// }
22+
qiankun: {
23+
master: {
24+
apps:[]
25+
}
26+
}
2727
});

public/apps/app1.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>这是APP1</title>
5+
</head>
6+
<body>
7+
这是微前端测试页,我是APP1!
8+
</body>
9+
</html>

public/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"apps": [
44
{
55
"name": "app1",
6-
"entry": "//www.baidu.com"
6+
"entry": "/apps/app1.html"
77
}
88
]
99
}

src/components/Render.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ const Render: React.FC<any> = (props:any) => {
124124
key: 'login',
125125
component: <Login {...body} callback={callback} data={data} />
126126
},
127-
// {
128-
// key: 'microApp',
129-
// component: <MicroApp {...body} callback={callback} data={data} />
130-
// },
127+
{
128+
key: 'microApp',
129+
component: <MicroApp {...body} callback={callback} data={data} />
130+
},
131131
{
132132
key: 'tpl',
133133
component: <>{ tplEngine(body.body,data) }</>

src/pages/document.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</head>
1414
<body>
1515
<noscript>Out-of-the-box mid-stage front/design solution!</noscript>
16-
<div id="root">
16+
<div id="root-master">
1717
<style>
1818
html,
1919
body,

0 commit comments

Comments
 (0)