feat(project): base smatec's frontend
This commit is contained in:
66
.umirc.sgw.ts
Normal file
66
.umirc.sgw.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
import { defineConfig } from '@umijs/max';
|
||||
import {
|
||||
alarmsRoute,
|
||||
commonManagerRoutes,
|
||||
loginRoute,
|
||||
managerRouteBase,
|
||||
notFoundRoute,
|
||||
profileRoute,
|
||||
} from './config/routes';
|
||||
|
||||
export default defineConfig({
|
||||
favicons: ['/sgw-logo.png'],
|
||||
layout: {
|
||||
title: 'SGW',
|
||||
},
|
||||
routes: [
|
||||
loginRoute,
|
||||
alarmsRoute,
|
||||
profileRoute,
|
||||
{
|
||||
name: 'sgw.map',
|
||||
icon: 'icon-map',
|
||||
path: '/map',
|
||||
component: './Slave/SGW/Map',
|
||||
},
|
||||
{
|
||||
name: 'sgw.trips',
|
||||
icon: 'icon-trip',
|
||||
path: '/trips',
|
||||
component: './Slave/SGW/Trip',
|
||||
},
|
||||
{
|
||||
...managerRouteBase,
|
||||
routes: [
|
||||
...commonManagerRoutes,
|
||||
{
|
||||
name: 'sgw.fishes',
|
||||
icon: 'icon-fish',
|
||||
path: '/manager/fish',
|
||||
routes: [
|
||||
{
|
||||
path: '/manager/fish',
|
||||
component: './Slave/SGW/Manager/Fish',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'sgw.zones',
|
||||
icon: 'icon-prohibited',
|
||||
path: '/manager/area',
|
||||
routes: [
|
||||
{
|
||||
path: '/manager/area',
|
||||
component: './Slave/SGW/Manager/Area',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/map',
|
||||
},
|
||||
notFoundRoute,
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user