Update default.vue

pull/3420/head
Tuğçe Küçükoğlu 2022-12-19 15:44:12 +03:00
parent fe50da913e
commit fdf4871211
1 changed files with 13 additions and 18 deletions

View File

@ -41,25 +41,20 @@ export default {
}); });
} }
}, },
/* watch: { watch: {
$route: { $route: {
immediate: true, immediate: true,
handler(to) { handler(to) {
// Todo: Check this again if (!process.client || typeof window === 'undefined') {
if(!process.client || typeof window === 'undefined') { return;
return }
}
window['gtag']('config', 'UA-93461466-1', { this.sidebarActive = false;
'page_path': '/primevue' + to.path DomHandler.removeClass(document.body, 'blocked-scroll');
}); this.$toast.removeAllGroups();
}
this.sidebarActive = false; }
DomHandler.removeClass(document.body, 'blocked-scroll'); },
this.$toast.removeAllGroups();
}
}
}, */
methods: { methods: {
onMenuButtonClick() { onMenuButtonClick() {
if (this.sidebarActive) { if (this.sidebarActive) {