|
@@ -1,6 +1,10 @@
|
|
import Vue from 'vue';
|
|
import Vue from 'vue';
|
|
import VueRouter from 'vue-router';
|
|
import VueRouter from 'vue-router';
|
|
import store from '@/store/index';
|
|
import store from '@/store/index';
|
|
|
|
+const originalPush = VueRouter.prototype.push;
|
|
|
|
+VueRouter.prototype.push = function push(location) {
|
|
|
|
+ return originalPush.call(this, location).catch(err => err);
|
|
|
|
+};
|
|
const jwt = require('jsonwebtoken');
|
|
const jwt = require('jsonwebtoken');
|
|
const list = [
|
|
const list = [
|
|
{
|
|
{
|