From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:26:15 +0800
Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改

---
 PAMapp/node_modules/vue-router/src/history/base.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/PAMapp/node_modules/vue-router/src/history/base.js b/PAMapp/node_modules/vue-router/src/history/base.js
index 5f2bad8..4751cd9 100644
--- a/PAMapp/node_modules/vue-router/src/history/base.js
+++ b/PAMapp/node_modules/vue-router/src/history/base.js
@@ -20,6 +20,7 @@
   isNavigationFailure,
   NavigationFailureType
 } from '../util/errors'
+import { handleScroll } from '../util/scroll'
 
 export class History {
   router: Router
@@ -146,7 +147,9 @@
             cb(err)
           })
         } else {
-          warn(false, 'uncaught error during route navigation:')
+          if (process.env.NODE_ENV !== 'production') {
+            warn(false, 'uncaught error during route navigation:')
+          }
           console.error(err)
         }
       }
@@ -161,6 +164,9 @@
       route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
     ) {
       this.ensureURL()
+      if (route.hash) {
+        handleScroll(this.router, current, route, false)
+      }
       return abort(createNavigationDuplicatedError(current, route))
     }
 

--
Gitblit v1.8.0