mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-19 11:19:30 +08:00
20 lines
624 B
Vue
20 lines
624 B
Vue
<script lang="ts" setup>
|
|
import DefaultLayoutWithVerticalNav from './components/DefaultLayoutWithVerticalNav.vue'
|
|
</script>
|
|
|
|
<template>
|
|
<DefaultLayoutWithVerticalNav>
|
|
<router-view v-slot="{ Component }">
|
|
<keep-alive>
|
|
<component :is="Component" v-if="$route.meta.keepAlive" :key="$route.name" />
|
|
</keep-alive>
|
|
<component :is="Component" v-if="!$route.meta.keepAlive" :key="$route.name" />
|
|
</router-view>
|
|
</DefaultLayoutWithVerticalNav>
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
// As we are using `layouts` plugin we need its styles to be imported
|
|
@use '@layouts/styles/default-layout';
|
|
</style>
|