From e50cb06a1b64e08954eda176d463856f68ae47e5 Mon Sep 17 00:00:00 2001 From: mch <1332099529@qq.com> Date: Mon, 14 Aug 2023 15:33:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 + src/store/index.js | 3 + src/views/Home.vue | 213 +++++++++-------------- src/views/doctorCheck/personnelBatch.vue | 6 +- 4 files changed, 94 insertions(+), 132 deletions(-) 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 @@