fix: 🐛 主题首次切换无效问题修复

Former-commit-id: 1a5028c4e94d8ed28ca567ac2767fdbc8a8516f1
This commit is contained in:
hxr
2023-11-05 17:17:28 +08:00
parent dfbbd5b6f7
commit de90c26210
3 changed files with 20 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts" setup>
import defaultSettings from "@/settings";
import { useSettingsStore } from "@/store/modules/settings";
const settingsStore = useSettingsStore();
@@ -35,7 +36,7 @@ const logo = ref(new URL(`../../../assets/logo.png`, import.meta.url).href);
>
<img v-if="settingsStore.sidebarLogo" :src="logo" class="w-5 h-5" />
<span class="ml-3 text-white text-sm font-bold">
{{ $t("login.title") }}</span
{{ defaultSettings.title }}</span
>
</router-link>
</transition>