diff --git a/src/components/home/DefaultHome.vue b/src/components/home/DefaultHome.vue
index e3cf3ba..bd504bd 100644
--- a/src/components/home/DefaultHome.vue
+++ b/src/components/home/DefaultHome.vue
@@ -32,7 +32,6 @@ const templateStore = useTemplateStore();
-
diff --git a/src/pages/ProfileView.vue b/src/pages/ProfileView.vue
index aa10cd8..d5a74f4 100644
--- a/src/pages/ProfileView.vue
+++ b/src/pages/ProfileView.vue
@@ -1,12 +1,3 @@
-
-
Profile
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/router/index.ts b/src/router/index.ts
index b58d7ee..5fd7d1b 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -5,49 +5,68 @@ const router = createRouter({
routes: [
{
path: '/',
- name: 'home',
- component: () => import('../pages/HomeView.vue')
+ component: () => import('../layouts/DefaultLayout.vue'),
+ children: [
+ {
+ path: '/',
+ name: 'home',
+ component: () => import('../pages/HomeView.vue'),
+ },
+ {
+ path: '/about',
+ name: 'about',
+ component: () => import('../pages/AboutView.vue'),
+ },
+ {
+ path: '/article',
+ name: 'article',
+ component: () => import('../pages/ArticleView.vue'),
+ },
+ {
+ path: '/author',
+ name: 'author',
+ component: () => import('../pages/AuthorView.vue'),
+ },
+ {
+ path: '/favorite',
+ name: 'favorite',
+ component: () => import('../pages/FavoriteView.vue'),
+ meta: {
+ requiresAuth: true
+ }
+ },
+ {
+ path: '/profile',
+ name: 'profile',
+ component: () => import('../pages/ProfileView.vue'),
+ meta: {
+ requiresAuth: true
+ }
+ },
+
+ ],
},
{
path: '/graph',
- name: 'graph',
- component: () => import('../pages/GraphView.vue')
- },
- {
- path: '/about',
- name: 'about',
- component: () => import('../pages/AboutView.vue')
- },
- {
- path: '/article',
- name: 'article',
- component: () => import('../pages/ArticleView.vue')
- },
- {
- path: '/author',
- name: 'author',
- component: () => import('../pages/AuthorView.vue')
- },
- {
- path: '/favorite',
- name: 'favorite',
- component: () => import('../pages/FavoriteView.vue'),
- meta: {
- requiresAuth: true
- }
- },
- {
- path: '/profile',
- name: 'profile',
- component: () => import('../pages/ProfileView.vue'),
- meta: {
- requiresAuth: true
- }
+ component: () => import('../layouts/GraphLayout.vue'),
+ children: [
+ {
+ path: '/',
+ name: 'graph',
+ component: () => import('../pages/GraphView.vue'),
+ },
+ ]
},
{
path: '/login',
- name: 'login',
- component: () => import('../pages/LoginView.vue')
+ component: () => import('../layouts/BlankLayout.vue'),
+ children: [
+ {
+ path: '/',
+ name: 'login',
+ component: () => import('../pages/LoginView.vue'),
+ },
+ ]
}
]
})