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', {
'page_path': '/primevue' + to.path
});
this.sidebarActive = false; this.sidebarActive = false;
DomHandler.removeClass(document.body, 'blocked-scroll'); DomHandler.removeClass(document.body, 'blocked-scroll');
this.$toast.removeAllGroups(); this.$toast.removeAllGroups();
} }
} }
}, */ },
methods: { methods: {
onMenuButtonClick() { onMenuButtonClick() {
if (this.sidebarActive) { if (this.sidebarActive) {