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
| <template>
| <div @click="foldFun" style="height: 100%;">
| <keep-alive :include="keepAliveList">
| <router-view />
| </keep-alive>
| </div>
| </template>
|
| <script>
| import { mapState } from 'vuex'
| export default {
| name: 'AppContent',
| data() {
| return {
| }
| },
| computed: {
| ...mapState(['keepAliveList'])
| },
| methods: {
| foldFun() {
| if (window.innerWidth < 1000) {
| this.$store.commit('SET_ISFOLD', true)
| }
| }
| }
| }
| </script>
|
|