|
@@ -12,6 +12,37 @@ const routes = [
|
|
|
path: '/welcome',
|
|
path: '/welcome',
|
|
|
component: './Welcome',
|
|
component: './Welcome',
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'admin',
|
|
|
|
|
+ icon: 'SettingOutlined',
|
|
|
|
|
+ path: '/admin',
|
|
|
|
|
+ routes: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'admin.products',
|
|
|
|
|
+ path: '/admin/products',
|
|
|
|
|
+ component: './Admin/Product',
|
|
|
|
|
+ access: 'routeFilter',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/admin/products/:id',
|
|
|
|
|
+ component: './Admin/Product/Detail',
|
|
|
|
|
+ hideInMenu: true,
|
|
|
|
|
+ access: 'routeFilter',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'admin.depts',
|
|
|
|
|
+ path: '/admin/depts',
|
|
|
|
|
+ component: './Admin/Dept',
|
|
|
|
|
+ access: 'routeFilter',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'admin.users',
|
|
|
|
|
+ path: '/admin/users',
|
|
|
|
|
+ component: './Admin/User',
|
|
|
|
|
+ access: 'routeFilter',
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
name: 'sys',
|
|
name: 'sys',
|
|
|
icon: 'SettingOutlined',
|
|
icon: 'SettingOutlined',
|