路由改为history
This commit is contained in:
+1
-1
@@ -4466,7 +4466,7 @@ Router.prototype.push = function push (location) {
|
||||
|
||||
const router = new Router({
|
||||
routes,
|
||||
mode: 'hash', // default: hash ,history
|
||||
mode: 'history', // default: hash ,history
|
||||
scrollBehavior (to, from, savedPosition) {
|
||||
if (savedPosition) {
|
||||
return savedPosition
|
||||
|
||||
Reference in New Issue
Block a user