| 1234567891011121314151617181920 |
- // qiankun 子应用注册配置
- // activeRule 需与主应用路由(/web、/mobile)及子应用自身 base 路径保持一致
- const MICRO_APPS = [
- {
- name: 'web-app',
- entry: import.meta.env.VITE_WEB_APP_ENTRY, // 子应用入口地址
- container: '#web-container',
- activeRule: '/web',
- props: { appKey: 'web', device: 'pc' },
- },
- {
- name: 'mobile-app',
- entry: import.meta.env.VITE_MOBILE_APP_ENTRY,
- container: '#mobile-container',
- activeRule: '/mobile',
- props: { appKey: 'mobile', device: 'mobile' },
- },
- ]
- export default MICRO_APPS
|