소스 검색

Add named route

sbkwgh 8 년 전
부모
커밋
3ebd347773
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -35,7 +35,7 @@ const router = new VueRouter({
 		{ path: '/category/:category', component: Index },
 		{ path: '/start', component: Start },
 		{ path: '/thread/:slug/:id', component: Thread },
-		{ path: '/thread/:slug/:id/:post_number', component: Thread },
+		{ path: '/thread/:slug/:id/:post_number', name: 'thread-post', component: Thread },
 		{ path: '/thread/new', component: ThreadNew },
 		{ path: '/user/:username', redirect: '/user/:username/posts', component: User, children: [
 			{ path: 'posts', component: UserPosts },