Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit 068ddb0

Browse files
author
Nickwasused
committed
implement vuejs#347
1 parent 9adbe21 commit 068ddb0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: src/App.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</router-link>
88
<router-link to="/top">Top</router-link>
99
<router-link to="/new">New</router-link>
10+
<router-link to="/best">Best</router-link>
1011
<router-link to="/show">Show</router-link>
1112
<router-link to="/ask">Ask</router-link>
1213
<router-link to="/job">Jobs</router-link>
@@ -64,7 +65,7 @@ a
6465
&.router-link-active
6566
color #fff
6667
font-weight 400
67-
&:nth-child(6)
68+
&:nth-child(7)
6869
margin-right 0
6970
.github
7071
color #fff

Diff for: src/router/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function createRouter () {
1616
routes: [
1717
{ path: '/top/:page(\\d+)?', component: createListView('top') },
1818
{ path: '/new/:page(\\d+)?', component: createListView('new') },
19+
{ path: '/best/:page(\\d+)?', component: createListView('best') },
1920
{ path: '/show/:page(\\d+)?', component: createListView('show') },
2021
{ path: '/ask/:page(\\d+)?', component: createListView('ask') },
2122
{ path: '/job/:page(\\d+)?', component: createListView('job') },

0 commit comments

Comments
 (0)