修复样式问题

This commit is contained in:
thofx
2023-07-22 18:46:54 +08:00
parent 4bd9bc4a1f
commit e146adeecc
8 changed files with 31 additions and 17 deletions

View File

@@ -4,11 +4,16 @@ import DefaultLayoutWithVerticalNav from './components/DefaultLayoutWithVertical
<template>
<DefaultLayoutWithVerticalNav>
<RouterView />
<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";
@use '@layouts/styles/default-layout';
</style>