+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ post.title.substr(0, 40) }}
+
+ mdi-eye
+ {{ post.hit }}
+ mdi-fire
+ {{ post.postlike_n }}
+
+ mdi-message-processing-outline
+
+ {{ post.comment_n }}
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index eeb9e8f..c116ed7 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -15,6 +15,9 @@ import PitAPat from '@/components/PitAPat/PitAPat.vue'
import MyPage from '@/components/MyPage/MyPage.vue'
import Profile from '@/components/MyPage/Profile.vue'
import MyPosts from '@/components/MyPage/MyPosts.vue'
+import Notifications from '@/components/MyPage/Notifications.vue'
+
+import NotFound from '@/components/Error/NotFound.vue'
Vue.use(Router)
@@ -23,6 +26,17 @@ export default new Router({
routes: [
{ path: '/', component: MainHome, name: 'home' },
+ {
+ path: '*',
+ redirect: '/404'
+ },
+
+ {
+ path: '/404',
+ name: 'notFound',
+ component: NotFound
+ },
+
{
path: '/social',
component: Social,
@@ -91,8 +105,10 @@ export default new Router({
props: true,
children: [
{ path: 'profile', component: Profile },
- { path: 'posts', component: MyPosts }
+ { path: 'posts', component: MyPosts },
+ { path: 'notifications', component: Notifications }
]
}
+
]
})