css
liuying
2024-04-25 f9bd89a83b87cd27eef7ed116881bd983cc1869e
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
<template>
  <div style="height:100%;overflow:auto;">
    <div class="content" style="margin:0;height:100%;">
      <div class="page-header-index-wide" style="height:100%;">
        <slot>
          <!-- keep-alive  -->
          <keep-alive v-if="multiTab">
            <router-view ref="content" />
          </keep-alive>
          <router-view v-else ref="content" />
        </slot>
      </div>
    </div>
  </div>
</template>
 
<script>
import { mapState } from 'vuex'
 
export default {
  name: 'PageView',
  computed: {
    ...mapState({
      multiTab: state => state.app.multiTab
    })
  }
}
</script>
 
<style lang="less" scoped>
  
</style>