diff --git a/src/router/index.js b/src/router/index.js index a2349f6..478eb04 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,6 +4,10 @@ import VueRouter from "vue-router"; import login from "@/views/login/Login.vue"; Vue.use(VueRouter); +// const originalpush = VueRouter.prototype.push +// VueRouter.prototype.push = function (location) { +// return originalpush.call(this, location).catch(err => err) +// } const routes = [ { path: "/", diff --git a/src/store/index.js b/src/store/index.js index 3b82a41..6a4fbca 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -9,6 +9,9 @@ export default new Vuex.Store({ state: { changepassword:'',//用户密码 set: "qqqq", + router:{ + path:'', + }, window:{ pageHeight:960, //页面高度 pageWidth:1920, //页面宽度 diff --git a/src/views/Home.vue b/src/views/Home.vue index f800c7f..a3faf15 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -5,22 +5,17 @@