mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-21 21:36:45 +08:00
JEECG-BOOT 2.0.2版本发布
This commit is contained in:
19
ant-design-vue-jeecg/src/components/layouts/RouteView.vue
Normal file
19
ant-design-vue-jeecg/src/components/layouts/RouteView.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div class="main">
|
||||
<keep-alive>
|
||||
<router-view v-if="keepAlive" />
|
||||
</keep-alive>
|
||||
<router-view v-if="!keepAlive" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "RouteView",
|
||||
computed: {
|
||||
keepAlive () {
|
||||
return this.$route.meta.keepAlive
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user