diff --git a/layouts/default.vue b/layouts/default.vue index a6a73316b8b3de8d8e16e1c8e4db91b0db09bbf7..8ad84509a769c4693d346091adc0aaf93343edc5 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -77,6 +77,14 @@ export default { this.$nuxt.$on("changeRoute", (breadcrumb) => { this.breadcrumb = breadcrumb }) + }, + watch: { + $route(to, from) { + let tooltips = document.querySelectorAll(".tooltip.show") + tooltips.forEach((tooltip) => { + tooltip.classList.remove("show") + }) + } } } </script> diff --git a/plugins/bootstrap.js b/plugins/bootstrap.js index 177cae8f9a027dee151f6d490d73f191e10c3fbb..eb028a58516500ee6a239429caf6984a555fd66b 100644 --- a/plugins/bootstrap.js +++ b/plugins/bootstrap.js @@ -29,7 +29,6 @@ Vue.directive("tooltip", function (el, binding, vnode) { vnode.context.$nextTick(() => { var x = new MutationObserver(function (e) { - console.log(e) if (e[0].removedNodes) tooltip.hide() });