浏览代码

Add sub route to thread page for post_id

sbkwgh 8 年之前
父节点
当前提交
a88e6eab7e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main.js

+ 1 - 0
src/main.js

@@ -37,6 +37,7 @@ const router = new VueRouter({
 		{ path: '/start', component: Start },
 		{ path: '/category/:category', component: Category },
 		{ path: '/thread/:slug/:id', component: Thread },
+		{ path: '/thread/:slug/:id/:post_id', component: Thread },
 		{ path: '/thread/new', component: ThreadNew },
 		{ path: '/user/:username', redirect: '/user/:username/posts', component: User, children: [
 			{ path: 'posts', component: UserPosts },