122 lines
3.1 KiB
JavaScript
Raw Normal View History

import actions from './actions';
2025-05-14 15:31:55 +08:00
<<<<<<< HEAD
2025-05-14 15:15:40 +08:00
const { VITE_APP_SUB_OS, VITE_APP_SUB_ADMIN, VITE_APP_SUB_GAS, VITE_APP_SUB_GSS, VITE_APP_SUB_GSR } = import.meta.env;
2025-05-14 15:31:55 +08:00
=======
2025-04-10 03:49:08 +01:00
const { VITE_APP_SUB_OS, VITE_APP_SUB_OA, VITE_APP_SUB_APP, VITE_APP_SUB_GAA, VITE_APP_SUB_GAS, VITE_APP_SUB_GSS } = import.meta.env;
2025-05-14 15:31:55 +08:00
>>>>>>> dev
2025-01-21 08:29:53 +00:00
export const leftApps = [
2025-02-17 06:43:55 +00:00
{
name: 'sub-operation-service',
entry: VITE_APP_SUB_OS,
activeRule: '/sub-operation-service',
title: '运营服务',
icon: 'images/platform/icon-home.png',
},
{
2025-04-10 03:12:02 +01:00
name: 'sub-operation-admin',
entry: VITE_APP_SUB_OA,
activeRule: '/sub-operation-admin',
2025-02-17 06:43:55 +00:00
title: '管理后台',
icon: 'images/platform/icon-admin.png',
},
{
name: 'sub-app',
2025-04-10 03:49:08 +01:00
entry: VITE_APP_SUB_APP,
2025-02-17 06:43:55 +00:00
activeRule: '/sub-app',
title: 'APP',
icon: 'images/platform/icon-app.png',
},
{
2025-04-10 03:12:02 +01:00
name: 'sub-government-screen-service',
2025-04-10 03:49:08 +01:00
entry: VITE_APP_SUB_GSS,
2025-04-10 03:12:02 +01:00
activeRule: '/sub-government-screen-service',
2025-02-17 06:43:55 +00:00
title: '数据大屏',
icon: 'images/platform/icon-screen.png',
},
];
2025-01-21 08:29:53 +00:00
export const rightApps = [
{
name: 'sub-government-affairs-service',
entry: VITE_APP_SUB_GAS,
2025-02-17 06:43:55 +00:00
activeRule: '/sub-government-affairs-service',
2025-01-21 08:29:53 +00:00
title: '政务服务',
2025-02-11 09:29:25 +00:00
icon: 'images/platform/icon-home.png',
2025-01-21 08:29:53 +00:00
},
2025-02-17 06:43:55 +00:00
{
name: 'sub-government-admin',
2025-04-10 03:49:08 +01:00
entry: VITE_APP_SUB_GAA,
activeRule: '/sub-government-affairs-service',
2025-02-17 06:43:55 +00:00
title: '管理后台',
icon: 'images/platform/icon-admin.png',
},
{
2025-04-10 03:12:02 +01:00
name: 'sub-app',
2025-04-10 03:49:08 +01:00
entry: VITE_APP_SUB_APP,
2025-04-10 03:12:02 +01:00
activeRule: '/sub-app',
2025-02-17 06:43:55 +00:00
title: 'APP',
icon: 'images/platform/icon-app.png',
},
{
2025-05-14 15:15:40 +08:00
// name: 'sub-government-screen-service',
name: 'new-digital-agriculture-screen',
// entry: VITE_APP_SUB_GSS,
entry: VITE_APP_SUB_GSR,
// activeRule: '/sub-government-screen-service',
activeRule: '/new-digital-agriculture-screen',
2025-02-17 06:43:55 +00:00
title: '数据大屏',
icon: 'images/platform/icon-screen.png',
},
2025-01-21 08:29:53 +00:00
];
2025-02-12 09:22:41 +00:00
export const defaultApps = [
{
name: 'sub-operation-service',
entry: VITE_APP_SUB_OS,
activeRule: '/sub-operation-service',
title: '运营服务',
icon: 'images/platform/icon-home.png',
},
2025-04-10 03:12:02 +01:00
{
name: 'sub-operation-admin',
entry: VITE_APP_SUB_OA,
activeRule: '/sub-operation-admin',
title: '运营管理后台',
icon: 'images/platform/icon-admin.png',
},
2025-02-17 06:43:55 +00:00
{
name: 'sub-government-affairs-service',
entry: VITE_APP_SUB_GAS,
activeRule: '/sub-government-affairs-service',
title: '政务服务',
icon: 'images/platform/icon-home.png',
},
2025-03-14 17:52:05 +08:00
{
2025-05-14 15:15:40 +08:00
// name: 'sub-government-screen-service',
name: 'new-digital-agriculture-screen',
// entry: VITE_APP_SUB_GSS,
entry: VITE_APP_SUB_GSR,
// activeRule: '/sub-government-screen-service',
activeRule: '/new-digital-agriculture-screen',
2025-03-14 17:52:05 +08:00
title: '数据大屏',
icon: 'images/platform/icon-screen.png',
},
2025-02-12 09:22:41 +00:00
];
2025-02-17 06:43:55 +00:00
export const microApps = [...defaultApps];
2025-05-12 17:46:49 +08:00
console.log(microApps);
const apps = microApps.map((item) => {
return {
...item,
2025-01-25 02:44:29 +00:00
container: '#app',
props: {
routerBase: item.activeRule,
2025-02-13 07:06:39 +00:00
globalState: actions.getGlobalState(),
},
};
});
export default apps;