keep-alive

This commit is contained in:
2023-06-29 18:42:36 +08:00
parent 5aa63a973b
commit a49a28370b
5 changed files with 23 additions and 15 deletions

View File

@@ -6,13 +6,16 @@
/>
<div class="body-container">
<div class="main-container">
<router-view></router-view>
<keep-alive :include="keepAlive" >
<router-view/>
</keep-alive>
</div>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import jxHeader from '@components/header.vue'
export default {
components: {
@@ -25,7 +28,8 @@ export default {
title () {
let res = ['半成品入库', '半成品入库查询', '半成品出库', '半成品出库查询', '半成品盘点', '半成品盘点查询', '半成品拼盘查询', '物料查询'][Number(this.$route.meta.guidePath) - 1]
return res
}
},
...mapGetters(['keepAlive'])
},
methods: {
switchColor (type) {