|
|
@ -17,7 +17,10 @@ const routes = [
|
|
|
|
component: Entry,
|
|
|
|
component: Entry,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: "/dashboard",
|
|
|
|
// If it is "/dashboard", the active link is not working
|
|
|
|
|
|
|
|
// If it is "", it overrides the "/" unexpectedly
|
|
|
|
|
|
|
|
// Give a random name to solve the problem.
|
|
|
|
|
|
|
|
path: "/empty",
|
|
|
|
component: Layout,
|
|
|
|
component: Layout,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -26,7 +29,7 @@ const routes = [
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: "DashboardHome",
|
|
|
|
name: "DashboardHome",
|
|
|
|
path: "",
|
|
|
|
path: "/dashboard",
|
|
|
|
component: DashboardHome,
|
|
|
|
component: DashboardHome,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|