| | |
| | | } |
| | | }) |
| | | |
| | | const app = createApp(App) |
| | | app.provide('toolClass', toolClass) |
| | | app.provide('request', request) |
| | | app.use(router) |
| | | app.use(ElementPlus) |
| | | app.use(pinia) |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component) |
| | | } |
| | | |
| | | app.mount('#parentApp') |
| | | |
| | | // qiankun主应用与微应用通讯 |
| | | import { initGlobalState, type MicroAppStateActions } from 'qiankun' |
| | |
| | | |
| | | // 移除当前应用的状态监听,微应用 umount 时会默认调用 |
| | | // actions.offGlobalStateChange() |
| | | |
| | | const app = createApp(App) |
| | | app.provide('qiankunActions', actions) |
| | | app.provide('toolClass', toolClass) |
| | | app.provide('request', request) |
| | | app.use(router) |
| | | app.use(ElementPlus) |
| | | app.use(pinia) |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component) |
| | | } |
| | | |
| | | app.mount('#parentApp') |
| | | |