fix: 🐛 布局切换问题修复

This commit is contained in:
hxr
2024-02-18 23:23:28 +08:00
parent 4c0baa8bb7
commit 53250a28dd
5 changed files with 45 additions and 17 deletions

View File

@@ -53,5 +53,11 @@ const logo = ref(new URL(`../../../../assets/logo.png`, import.meta.url).href);
.logo-container {
width: $sidebar-width;
}
&.hideSidebar {
.logo-container {
width: $sidebar-width-collapsed;
}
}
}
</style>

View File

@@ -20,9 +20,10 @@
<script setup lang="ts">
import { useSettingsStore, usePermissionStore, useAppStore } from "@/store";
const appStore = useAppStore();
const settingsStore = useSettingsStore();
const permissionStore = usePermissionStore();
const appStore = useAppStore();
const { sidebarLogo } = settingsStore;
const sidebarLogo = settingsStore.sidebarLogo;
const layout = computed(() => settingsStore.layout);
</script>