2025-06-26 17:47:20 +08:00
|
|
|
<template>
|
|
|
|
|
<div id="app" class="app">
|
|
|
|
|
<keep-alive>
|
|
|
|
|
<router-view :key="$route.name" v-if="$route.meta.keepAlive"/>
|
|
|
|
|
</keep-alive>
|
|
|
|
|
<router-view :key="$route.name" v-if="!$route.meta.keepAlive"/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: 'App'
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2025-08-05 14:20:40 +08:00
|
|
|
@import './style/mixin'
|
2025-06-26 17:47:20 +08:00
|
|
|
.app
|
|
|
|
|
width 100%
|
|
|
|
|
height 100%
|
|
|
|
|
</style>
|