Forráskód Böngészése

fix:增加APP图标显示

Jerry Liang 11 hónapja
szülő
commit
3fd8a620eb
2 módosított fájl, 4 hozzáadás és 2 törlés
  1. 3 1
      src/layout/header/Logo.vue
  2. 1 1
      src/stores/user.ts

+ 3 - 1
src/layout/header/Logo.vue

@@ -28,7 +28,9 @@ const collapseWidth = computed(() => {
       },
     ]">
       <div class="size-10 shrink-0">
-        <div class="size-full rounded bg-[var(--primary-color)] bg-op-10"></div>
+        <div class="size-full rounded bg-[var(--primary-color)] bg-op-10 flex justify-center items-center">
+          <img src="/favicon-32x32.png" alt="favicon" />
+        </div>
       </div>
       <div class="flex-1 overflow-hidden transition-[margin-left,max-width] duration-300"
         :class="configureStore.configure.menuCollapsed ? 'ml-0 max-w-0' : 'ml-4 max-w-44'">

+ 1 - 1
src/stores/user.ts

@@ -20,7 +20,7 @@ interface User {
 const DEFAULT_USER: User = {
   avatar: '',
   id: '2000',
-  name: 'Lithe User',
+  name: 'FWH User',
   role: 'admin',
 }