mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 04:39:00 +08:00
Merge pull request #4551 from break60/dev
[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:
commit
69445e3cfc
@ -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