2025-01-20 08:09:54 +00:00
|
|
|
import actions from './actions';
|
|
|
|
|
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-01-20 08:09:54 +00:00
|
|
|
|
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',
|
2025-05-14 15:37:48 +08:00
|
|
|
entry: VITE_APP_SUB_OS,
|
2025-04-10 03:12:02 +01:00
|
|
|
activeRule: '/sub-operation-admin',
|
2025-02-17 06:43:55 +00:00
|
|
|
title: '管理后台',
|
|
|
|
icon: 'images/platform/icon-admin.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'sub-app',
|
2025-05-14 15:37:48 +08:00
|
|
|
entry: VITE_APP_SUB_GAS,
|
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-20 08:09:54 +00:00
|
|
|
];
|
|
|
|
|
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-05-14 15:37:48 +08:00
|
|
|
entry: VITE_APP_SUB_GAS,
|
2025-04-10 03:49:08 +01:00
|
|
|
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-05-14 15:37:48 +08:00
|
|
|
entry: VITE_APP_SUB_GAS,
|
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',
|
2025-05-20 13:25:47 +08:00
|
|
|
name: 'new-digital-agriculture-screen/v2/land',
|
2025-05-14 15:15:40 +08:00
|
|
|
// entry: VITE_APP_SUB_GSS,
|
|
|
|
entry: VITE_APP_SUB_GSR,
|
|
|
|
// activeRule: '/sub-government-screen-service',
|
2025-05-20 13:25:47 +08:00
|
|
|
activeRule: '/new-digital-agriculture-screen/v2/land',
|
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 = [
|
2025-04-02 13:46:49 +08: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',
|
2025-05-14 15:37:48 +08:00
|
|
|
entry: VITE_APP_SUB_OS,
|
2025-04-10 03:12:02 +01:00
|
|
|
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-05-14 17:10:21 +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',
|
|
|
|
title: '数据大屏',
|
|
|
|
icon: 'images/platform/icon-screen.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);
|
2025-01-20 08:09:54 +00:00
|
|
|
const apps = microApps.map((item) => {
|
|
|
|
return {
|
|
|
|
...item,
|
2025-01-25 02:44:29 +00:00
|
|
|
container: '#app',
|
2025-01-20 08:09:54 +00:00
|
|
|
props: {
|
|
|
|
routerBase: item.activeRule,
|
2025-02-13 07:06:39 +00:00
|
|
|
globalState: actions.getGlobalState(),
|
2025-01-20 08:09:54 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
export default apps;
|