Skip to content

Commit d3a9030

Browse files
committed
fixed front end routing
1 parent a2854ef commit d3a9030

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

front/src/app/app-routing.module.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PreloadAllModules, RouterModule, Routes } from "@angular/router";
33

44
const routes: Routes = [
55
{
6-
path: "home",
6+
path: "",
77
loadChildren: () =>
88
import("./home/home.module").then((m) => m.HomePageModule),
99
},
@@ -14,11 +14,6 @@ const routes: Routes = [
1414
(m) => m.ViewMessagePageModule
1515
),
1616
},
17-
{
18-
path: "",
19-
redirectTo: "home",
20-
pathMatch: "full",
21-
},
2217
];
2318

2419
@NgModule({

front/src/app/home/home-routing.module.ts

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ const routes: Routes = [
88
path: "",
99
component: HomePage,
1010
},
11-
{
12-
path: "/home",
13-
component: HomePage,
14-
},
1511
];
1612

1713
@NgModule({

0 commit comments

Comments
 (0)