refactor: refs #7014 improved route.js & deleted RouteMain

This commit is contained in:
Jon Elias 2024-07-23 09:12:00 +02:00
parent f596a9b5f7
commit 33ad8fcb9d
3 changed files with 11 additions and 12 deletions

View File

@ -1,8 +1,16 @@
<script setup>
import { useStateStore } from 'stores/useStateStore';
import LeftMenu from 'components/LeftMenu.vue';
import { onMounted } from 'vue';
const stateStore = useStateStore();
const $props = defineProps({
leftDrawer: {
type: Boolean,
default: true,
},
});
onMounted(() => (stateStore.leftDrawer = $props.leftDrawer));
</script>
<template>

View File

@ -1,12 +0,0 @@
<script setup>
import VnSectionMain from 'components/common/VnSectionMain.vue';
import { useStateStore } from 'stores/useStateStore';
import { onMounted } from 'vue';
const stateStore = useStateStore();
onMounted(() => (stateStore.leftDrawer = false));
</script>
<template>
<VnSectionMain />
</template>

View File

@ -19,6 +19,9 @@ export default {
path: '/route',
name: 'RouteMain',
component: () => import('src/components/common/VnSectionMain.vue'),
props: {
leftDrawer: false,
},
redirect: { name: 'RouteList' },
children: [
{