diff --git a/src/router/index.js b/src/router/index.js index 748a8cbfaedca85295499618118d5657856bddc6..c6f3bdcee2fd89b604733b20e2b0146b885f24a1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -290,5 +290,8 @@ export function resetRouter() { routes: constantRoutes, }).matcher } - +const originalPush = VueRouter.prototype.push +VueRouter.prototype.push = function push(location) { + return originalPush.call(this, location).catch((err) => err) +} export default router diff --git a/src/views/screening/index.vue b/src/views/screening/index.vue index 80dfaf726f14c732477349a060e6f05739a57270..58440ba862ad9a44cdf827616993720b53d7efa1 100644 --- a/src/views/screening/index.vue +++ b/src/views/screening/index.vue @@ -25,9 +25,7 @@
- 返 回 + 返 回
{ - this.handleAdd({ + this.handleView({ patientId: this.patientId, name: "", })