From e416e599fa190fc45720d47d0db3fc026dbb3147 Mon Sep 17 00:00:00 2001 From: minie4 Date: Tue, 6 Jun 2023 19:32:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Define=20data=20routes=20in=20ro?= =?UTF-8?q?uter=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 9 +-------- src/router/index.js | 9 +++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index b319d46..8eb7210 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,14 +17,7 @@ colorSchemeMedia.addEventListener( ); const route = useRoute(); -const routeName = computed(() => route.name); -const isDataView = computed(() => { - return ( - routeName.value != "title.settings" && - routeName.value != "title.login" && - routeName.value != "title.token" - ); -}); +const isDataView = computed(() => route.meta.dataView || false);