diff --git a/src/router/index.js b/src/router/index.js index b04251c..4cd205f 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: "/", @@ -244,6 +248,11 @@ const routes = [ name: "总检医生诊台", component: () => import("../views/doctorCheck/sumDoctorCheck.vue"), }, + { + path: "/personnelBatch", + name: "人员预约登记", + component: () => import("../views/doctorCheck/personnelBatch.vue"), + }, //---------------------- 体 检 end ---------------------- ], }, 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 b95476b..a3faf15 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -5,22 +5,17 @@
-