pyt
2025-04-24 e4685842877923e0cb8f2539b009ae5910dc47d8
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>