1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <template>
| <div class="about">
| count: {{ counter.count }}
| <el-button size="small" @click="counter.increment">按钮</el-button>
| </div>
| </template>
|
| <script setup lang="ts">
| import { useCounterStore } from '@/stores/counter'
|
| let counter = useCounterStore()
| </script>
|
| <style lang="scss">
| @media (min-width: 1024px) {
| .about {
| min-height: 100vh;
| display: flex;
| align-items: center;
| }
| }
| </style>
|
|