he wei
2025-06-06 895129470d7ee48183fc15b9ee18ef0880503e5d
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
<template>
    <section class="page-home-content">
        <!-- <transition name="fade-transform" mode="out-in"> -->
        <keep-alive :include="cachedViews">
            <router-view :key="key" />
        </keep-alive>
        <!-- </transition> -->
    </section>
</template>
 
<script>
export default {
    name: "AppMain",
    computed: {
        cachedViews() {
            return this.$store.state.tagsView.cachedViews;
        },
        key() {
            if (this.$route.name == 'history') {
                return this.$route.fullPath;
            } else {
                return this.$route.name;
            }
        },
    },
};
</script>
 
<style scoped>
.page-home-content {
    width: 100%;
    height: 100%;
    padding-top: 8px;
    box-sizing: border-box;
}
</style>