|
@@ -1,6 +1,19 @@
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
import Router from 'vue-router'
|
|
import Router from 'vue-router'
|
|
|
|
|
|
|
|
|
|
+const routerPush = Router.prototype.push
|
|
|
|
|
+
|
|
|
|
|
+Router.prototype.push = function push(location) {
|
|
|
|
|
+
|
|
|
|
|
+ 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)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
Vue.use(Router)
|
|
Vue.use(Router)
|
|
|
|
|
|
|
|
export default new Router({
|
|
export default new Router({
|