31 lines
559 B
JavaScript
Raw Normal View History

import actions from './actions';
const { VITE_APP_SUB_VUE, VITE_APP_SUB_ADMIN } = import.meta.env;
export const microApps = [
{
name: 'suv-vue',
entry: VITE_APP_SUB_VUE,
activeRule: '/sub-vue/',
title: '管理后台',
},
{
name: 'sub-admin',
entry: VITE_APP_SUB_ADMIN,
activeRule: '/sub-admin/',
},
];
const apps = microApps.map((item) => {
return {
...item,
container: '#app',
props: {
routerBase: item.activeRule,
getGlobalState: actions.getGlobalState,
},
};
});
export default apps;