Browse Source

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
data_quality_design
xingchun-chen 3 years ago committed by GitHub
parent
commit
69445e3cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui/src/js/conf/home/router/index.js

5
dolphinscheduler-ui/src/js/conf/home/router/index.js

@ -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…
Cancel
Save