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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<section id="business_container">
<transition name="fade-transform" mode="out-in">
<keep-alive :include="cachedViews">
<router-view :key="key" />
</keep-alive>
</transition>
</section>
</template>
<script>
export default {
name: "Business",
watch: {
$route() {
if (this.$route.path.startsWith("/review")) {
this.$store.commit("setMode", "display");
} else {
this.$store.commit("setMode", "normal");
}
},
},
created: () => {
console.log("进入业务交易界面");
},
computed: {
cachedViews() {
return this.$store.state.TagsView.cachedViews;
},
key() {
return this.$route.path;
},
},
};
</script>
<style>
#business_container {
/* height: 100%; */
padding: 5px 15px;
/* width: 100%; */
flex: 1;
}
#business_container .eibs-tab {
padding: 0 15px;
}
#business_container .eibs-tab::after {
content: "";
display: block;
clear: both;
}
</style>