Skip to content

Commit

Permalink
Merge pull request #67 from DaoCloud/feature/set_default_router
Browse files Browse the repository at this point in the history
feat(*): 设置默认路由
  • Loading branch information
ZhuJingSi authored May 19, 2017
2 parents f5514b1 + ffcf5a1 commit de955b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ li + li {
<nav>
<ul class="container-body">
<li>
<router-link to="/autocomplete">AutoComplete</router-link>
<router-link to="/button">Button</router-link>
</li>
<li>
<router-link to="/button">Button</router-link>
<router-link to="/autocomplete">AutoComplete</router-link>
</li>
<li>
<router-link to="/setting-layout">Setting Layout</router-link>
Expand Down
3 changes: 3 additions & 0 deletions examples/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ const router = new VueRouter({
}, {
path: '/tooltip',
component: tooltip,
}, {
path: '*',
redirect: '/button',
}],
});

Expand Down

0 comments on commit de955b1

Please sign in to comment.