mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 04:39:00 +08:00
[Improvement-4550][ui]Fix the problem of Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation when clicking on the same route
This commit is contained in:
parent
c9df981e3d
commit
2289ba48b8
@ -558,6 +558,11 @@ const router = new Router({
|
||||
]
|
||||
})
|
||||
|
||||
const VueRouterPush = Router.prototype.push
|
||||
Router.prototype.push = function push (to) {
|
||||
return VueRouterPush.call(this, to).catch(err => err)
|
||||
}
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
const $body = $('body')
|
||||
$body.find('.tooltip.fade.top.in').remove()
|
||||
|
Loading…
Reference in New Issue
Block a user