浏览代码

Redirect to posts page

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

+ 1 - 1
src/main.js

@@ -38,7 +38,7 @@ const router = new VueRouter({
 		{ path: '/category/:category', component: Category },
 		{ path: '/thread/:slug/:id', component: Thread },
 		{ path: '/thread/new', component: ThreadNew },
-		{ path: '/user/:username', component: User, children: [
+		{ path: '/user/:username', redirect: '/user/:username/posts', component: User, children: [
 			{ path: 'posts', component: UserPosts },
 			{ path: 'threads', component: UserThreads }
 		] },