diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 286e11d..3e71d52 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -158,7 +158,7 @@ const toastStore = useToastStore() // 应用配置 const appName = computed(() => settingsStore.appSettings.appName || 'EasyImg') -const appLogo = computed(() => settingsStore.appSettings.appLogo || '') +const appLogo = computed(() => settingsStore.appSettings.appLogo || '/favicon.png') const backgroundUrl = computed(() => settingsStore.appSettings.backgroundUrl || '') const backgroundBlur = computed(() => settingsStore.appSettings.backgroundBlur || 0) diff --git a/nuxt.config.js b/nuxt.config.js index 58eef1f..3ad8ad8 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -37,6 +37,9 @@ export default defineNuxtConfig({ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'description', content: '简单易用的个人图床' } + ], + link: [ + { rel: 'icon', type: 'image/png', href: '/favicon.png' } ] } }, diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000..cc1a551 Binary files /dev/null and b/public/favicon.png differ