Skip to content

Commit

Permalink
use hash routing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Mar 30, 2017
1 parent 03f8da0 commit 9c68b0e
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/uiv.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="shortcut icon" type="image/png" href="/static/images/v-logo.png"><meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1,maximum-scale=1"><title>uiv - Bootstrap 3 Components Built with Vue 2.</title><link href="/uiv/static/css/app.d986f4c90a51f918ffa85bd09207a203.css" rel="stylesheet"></head><body><div id="app"></div><script type="text/javascript" src="/uiv/static/js/manifest.4eda682c848d3ae5020e.js"></script><script type="text/javascript" src="/uiv/static/js/vendor.3159642a7e992ad2b083.js"></script><script type="text/javascript" src="/uiv/static/js/app.5ae6606f81342612f6e0.js"></script></body></html>
<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="shortcut icon" type="image/png" href="/static/images/v-logo.png"><meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1,maximum-scale=1"><title>uiv - Bootstrap 3 Components Built with Vue 2.</title><link href="/uiv/static/css/app.d986f4c90a51f918ffa85bd09207a203.css" rel="stylesheet"></head><body><div id="app"></div><script type="text/javascript" src="/uiv/static/js/manifest.ae988d6457654457d85a.js"></script><script type="text/javascript" src="/uiv/static/js/vendor.3159642a7e992ad2b083.js"></script><script type="text/javascript" src="/uiv/static/js/app.fb0dad55560dc0a772f7.js"></script></body></html>
1 change: 0 additions & 1 deletion docs/static/js/app.5ae6606f81342612f6e0.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/static/js/app.fb0dad55560dc0a772f7.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/static/js/manifest.4eda682c848d3ae5020e.js

This file was deleted.

2 changes: 2 additions & 0 deletions docs/static/js/manifest.ae988d6457654457d85a.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ let routes = [

let router = new VueRouter({
base: 'uiv',
mode: 'history',
routes,
scrollBehavior (to, from, savedPosition) {
return {x: 0, y: 0}
}
routes
})

router.afterEach(route => {
window.scrollTo(0, 0)
})

/* eslint-disable no-new */
Expand Down

0 comments on commit 9c68b0e

Please sign in to comment.