From 8663c0f1a31eabe2820c98dc6524d8142afd936d Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期三, 19 六月 2024 11:54:34 +0800 Subject: [PATCH] 1、 下次技术状态鉴定时间调整 ,下次技术状态鉴定时间=验收日期+技术状态检定周期-1天 2、字段展示调整 --- src/router/index.js | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index bdbe374..8603811 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,8 +4,22 @@ Vue.use(Router) +// 瑙e喅鎶ラ敊 +const originalPush = Router.prototype.push +const originalReplace = Router.prototype.replace +// push +Router.prototype.push = function push (location, onResolve, onReject) { + if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject) + return originalPush.call(this, location).catch(err => err) +} +// replace +Router.prototype.replace = function push (location, onResolve, onReject) { + if (onResolve || onReject) return originalReplace.call(this, location, onResolve, onReject) + return originalReplace.call(this, location).catch(err => err) +} + export default new Router({ - mode: 'history', + mode: 'hash', base: process.env.BASE_URL, scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap -- Gitblit v1.9.3