This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-admin.git


The following commit(s) were added to refs/heads/develop by this push:
     new 44dfccc  解决重复点功能,浏览器控制台报错问题,如点击:服务查询-搜索按钮 (#916)
44dfccc is described below

commit 44dfccc3950035baa2b6a44831f209ca3fcc20b7
Author: cnjxzhao <[email protected]>
AuthorDate: Sat Aug 27 09:50:52 2022 +0800

    解决重复点功能,浏览器控制台报错问题,如点击:服务查询-搜索按钮 (#916)
---
 dubbo-admin-ui/src/router/index.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dubbo-admin-ui/src/router/index.js 
b/dubbo-admin-ui/src/router/index.js
index 8cb9574..96a3af3 100644
--- a/dubbo-admin-ui/src/router/index.js
+++ b/dubbo-admin-ui/src/router/index.js
@@ -36,6 +36,11 @@ import Management from '@/components/Management'
 import Index from '@/Index'
 import Login from '@/Login'
 
+const originalPush = Router.prototype.push
+Router.prototype.push = function push(location) {
+  return originalPush.call(this, location).catch(err => err)
+}
+
 Vue.use(Router)
 
 export default new Router({

Reply via email to