|
@@ -5,11 +5,11 @@ const routerPush = Router.prototype.push
|
|
|
|
|
|
|
|
Router.prototype.push = function push(location) {
|
|
Router.prototype.push = function push(location) {
|
|
|
|
|
|
|
|
- if(typeof(location)=="string"){
|
|
|
|
|
- var Separator = "&";
|
|
|
|
|
- if(location.indexOf('?')==-1) { Separator='?'; }
|
|
|
|
|
- location = location + Separator + "random=" + Math.random();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(typeof(location)=="string"){
|
|
|
|
|
+ // var Separator = "&";
|
|
|
|
|
+ // if(location.indexOf('?')==-1) { Separator='?'; }
|
|
|
|
|
+ // location = location + Separator + "random=" + Math.random();
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
return routerPush.call(this, location).catch(error => error)
|
|
return routerPush.call(this, location).catch(error => error)
|
|
|
}
|
|
}
|
|
@@ -27,11 +27,7 @@ export default new Router({
|
|
|
{
|
|
{
|
|
|
path: '/home',
|
|
path: '/home',
|
|
|
name: 'home',
|
|
name: 'home',
|
|
|
- // route level code-splitting
|
|
|
|
|
- // this generates a separate chunk (about.[hash].js) for this route
|
|
|
|
|
- // which is lazy-loaded when the route is visited.
|
|
|
|
|
- component: () => import('./views/Home.vue'),
|
|
|
|
|
- // omponent: () => import('./views/Home.vue'),
|
|
|
|
|
|
|
+ component: () => import('./views/Home.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
title: '首页'
|
|
title: '首页'
|
|
|
}
|
|
}
|