cleanup routes names
This commit is contained in:
+2
-1
@@ -2,11 +2,12 @@
|
||||
import { computed } from 'vue';
|
||||
import { RouterView, useRoute } from 'vue-router';
|
||||
import { Sidebar } from './sidebar';
|
||||
import { routeNames } from '@/routes';
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
const hideSidebar = computed(() => {
|
||||
return route.name === 'callback' || route.name === 'about';
|
||||
return route.name === routeNames.callback || route.name === routeNames.about;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user