feat: 应用名和logo修改

This commit is contained in:
caiyuchao
2025-07-07 18:38:09 +08:00
parent d398f3621f
commit c6a1ee5b04
7 changed files with 7 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -4,18 +4,12 @@ import { computed } from 'vue';
import { AuthPageLayout } from '@vben/layouts';
import { preferences } from '@vben/preferences';
import { $t } from '#/locales';
const appName = computed(() => preferences.app.name);
const logo = computed(() => preferences.logo.source);
</script>
<template>
<AuthPageLayout
:app-name="appName"
:logo="logo"
:page-title="$t('authentication.pageTitle')"
>
<AuthPageLayout :app-name="appName" :logo="logo">
<!-- 自定义工具栏 -->
<!-- <template #toolbar></template> -->
</AuthPageLayout>

View File

@@ -13,6 +13,10 @@ export const overridesPreferences = defineOverridesPreferences({
name: import.meta.env.VITE_APP_TITLE,
enableRefreshToken: true,
},
logo: {
// source: 'https://www.agrandtech.com.cn/favicon.ico',
source: '/agt.png',
},
footer: {
/** 默认关闭 footer 页脚,因为有一定遮挡 */
enable: false,