-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
40 lines (35 loc) · 813 Bytes
/
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
<template>
<div class="main">
<Header />
<Content />
<StarTip />
</div>
</template>
<script lang="ts">
import Header from './components/Header.vue'
import Content from './components/Content.vue'
import StarTip from './components/StarTip.vue'
import { useStoreProvide, useStoreInject } from './hooks/store'
export default {
name: 'App',
components: {
Header,
Content,
StarTip,
},
setup() {
useStoreProvide()
const { fetchCategories } = useStoreInject()
fetchCategories()
return {}
},
}
</script>
<style lang="less">
body {
background-color: #f9f9f9;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>