Skip to content

Commit

Permalink
馃摑 upgrade demo (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos authored and Deturium committed Jan 13, 2020
1 parent 515c1ea commit 633675b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/main/index.js
Expand Up @@ -55,7 +55,7 @@ initApp();

registerMicroApps(
[
{ name: 'react app', entry: '//localhost:7100', render, activeRule: genActiveRule('/react') },
{ name: 'react16-main', entry: '//localhost:7100', render, activeRule: genActiveRule('/react') },
{ name: 'react15 app', entry: '//localhost:7102', render, activeRule: genActiveRule('/15react15') },
{ name: 'vue app', entry: '//localhost:7101', render, activeRule: genActiveRule('/vue') },
],
Expand All @@ -81,4 +81,4 @@ registerMicroApps(
setDefaultMountApp('/react');
runAfterFirstMounted(() => console.info('first app mounted'));

start({ prefetch: true, fetch: request });
start({ prefetch: true });
4 changes: 4 additions & 0 deletions examples/react15/index.js
Expand Up @@ -20,3 +20,7 @@ export async function mount(props) {
export async function unmount() {
ReactDOM.unmountComponentAtNode(document.getElementById('react15Root'));
}

if (!window.__POWERED_BY_QIANKUN__) {
bootstrap().then(mount);
}

0 comments on commit 633675b

Please sign in to comment.