|
|
@ -1,6 +1,7 @@ |
|
|
|
import { Routes } from '@angular/router'; |
|
|
|
import { Routes } from '@angular/router'; |
|
|
|
import {IndexComponent} from "./pages/body/index/index.component"; |
|
|
|
import {IndexComponent} from "./pages/body/index/index.component"; |
|
|
|
import {InitGuardService} from "./utils/initGuard.service"; |
|
|
|
import {InitGuardService} from "./utils/initGuard.service"; |
|
|
|
|
|
|
|
import {TRADE_ROUTES} from "./pages/trade/trade.routes"; |
|
|
|
export const routes: Routes = [ |
|
|
|
export const routes: Routes = [ |
|
|
|
{path: '', pathMatch: 'full', redirectTo: 'admin/index'}, |
|
|
|
{path: '', pathMatch: 'full', redirectTo: 'admin/index'}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -29,6 +30,11 @@ export const routes: Routes = [ |
|
|
|
loadChildren: () => import('./pages/merchant/merchant.routes').then(m => m.MERCHANT_ROUTES), |
|
|
|
loadChildren: () => import('./pages/merchant/merchant.routes').then(m => m.MERCHANT_ROUTES), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
path: 'trade', |
|
|
|
|
|
|
|
loadChildren: () => import('./pages/trade/trade.routes').then(m => m.TRADE_ROUTES), |
|
|
|
|
|
|
|
canActivate: [InitGuardService] |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'goods', |
|
|
|
path: 'goods', |
|
|
|
loadChildren: () => import('./pages/goods/goods.routes').then(m => m.GOODS_ROUTES), |
|
|
|
loadChildren: () => import('./pages/goods/goods.routes').then(m => m.GOODS_ROUTES), |
|
|
|