-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
54 lines (46 loc) · 1.03 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script setup lang="ts">
import { ref } from "vue";
import { useHouseRulesStore } from "@/store/houseRules";
const drawer = ref(false);
const toggleDrawer = () => {
drawer.value = !drawer.value;
};
const store = useHouseRulesStore();
const loaded = ref(false);
store.fetchHouseRules(1).then(() => {
loaded.value = true;
});
</script>
<template>
<v-app>
<v-app-bar
elevation="0"
class="!tw-py-4"
>
<v-app-bar-nav-icon
class="nav-icon md:!tw-hidden !tw-absolute"
@click="toggleDrawer"
/>
<Header />
</v-app-bar>
<v-navigation-drawer
v-model="drawer"
class="!tw-py-8"
temporary
>
<Drawer />
</v-navigation-drawer>
<v-main class="!tw-pt-24">
<v-container>
<NewHouseRule />
</v-container>
<v-container>
<v-row data-aos="fade-left">
<HouseRuleList v-if="loaded" />
</v-row>
</v-container>
</v-main>
<Footer />
</v-app>
</template>
<style src="@/assets/scss/global.scss" lang="scss" />