安宁pc前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
569 B

<template>
<keep-alive include="violationsrecords">
<component :is="selectComponent"></component>
</keep-alive>
</template>
<script>
import Violationsrecords from './violationsrecords'
import ViolationsrecordsDetail from './violationsrecordsDetail'
export default {
data () {
return {
selectComponent: Violationsrecords
}
},
components: {
Violationsrecords,
ViolationsrecordsDetail
},
methods: {
init () {
this.selectComponent = Violationsrecords
}
}
}
</script>
<style lang="scss" scoped>
</style>