fix(web): make logo and icon assets base-path aware

This commit is contained in:
Ez authored and GitHub committed 2026-08-08 11:33:37 +08:00
1 parent 2c036e2860
commit 062daf3093
3 files changed
+9 -4

No files matched your search

@@ -1,10 +1,11 @@
<script setup lang="ts">
import { computed } from "vue";
import { useSettingsStore } from "@/stores/settingsStore";
import { webPath } from "@/lib/common/webPath";
const settingsStore = useSettingsStore();
const isBlackLogo = computed(() => settingsStore.desktopSettings.icon_theme === "black");
const logoSrc = computed(() => (isBlackLogo.value ? "/logo-black.png" : "/logo.png"));
const logoSrc = computed(() => webPath(isBlackLogo.value ? "/logo-black.png" : "/logo.png"));
</script>
<template>