47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
diff --git a/src/layouts/ViewLayout.vue b/src/layouts/ViewLayout.vue
|
|
new file mode 100644
|
|
index 00000000..4812e7a8
|
|
--- /dev/null
|
|
+++ b/src/layouts/ViewLayout.vue
|
|
@@ -0,0 +1,16 @@
|
|
+<script setup>
|
|
+import { useStateStore } from 'stores/useStateStore';
|
|
+import LeftMenu from 'components/LeftMenu.vue';
|
|
+
|
|
+const stateStore = useStateStore();
|
|
+</script>
|
|
+<template>
|
|
+ <QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
|
|
+ <QScrollArea class="fit text-grey-8">
|
|
+ <LeftMenu />
|
|
+ </QScrollArea>
|
|
+ </QDrawer>
|
|
+ <QPageContainer>
|
|
+ <RouterView></RouterView>
|
|
+ </QPageContainer>
|
|
+</template>
|
|
diff --git a/src/pages/Claim/ClaimMain.vue b/src/pages/Claim/ClaimMain.vue
|
|
index f0dc2e50..6a294fe8 100644
|
|
--- a/src/pages/Claim/ClaimMain.vue
|
|
+++ b/src/pages/Claim/ClaimMain.vue
|
|
@@ -1,17 +1,7 @@
|
|
<script setup>
|
|
-import { useStateStore } from 'stores/useStateStore';
|
|
-import LeftMenu from 'components/LeftMenu.vue';
|
|
-
|
|
-const stateStore = useStateStore();
|
|
+import ViewLayout from 'src/layouts/ViewLayout.vue';
|
|
</script>
|
|
|
|
<template>
|
|
- <QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
|
|
- <QScrollArea class="fit text-grey-8">
|
|
- <LeftMenu />
|
|
- </QScrollArea>
|
|
- </QDrawer>
|
|
- <QPageContainer>
|
|
- <RouterView></RouterView>
|
|
- </QPageContainer>
|
|
+ <ViewLayout></ViewLayout>
|
|
</template>
|