feat: 应用名和logo修改
This commit is contained in:
BIN
apps/web-antd/public/agt.png
Normal file
BIN
apps/web-antd/public/agt.png
Normal file
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 |
BIN
apps/web-antd/public/favicon4.ico
Normal file
BIN
apps/web-antd/public/favicon4.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
@@ -4,18 +4,12 @@ import { computed } from 'vue';
|
|||||||
import { AuthPageLayout } from '@vben/layouts';
|
import { AuthPageLayout } from '@vben/layouts';
|
||||||
import { preferences } from '@vben/preferences';
|
import { preferences } from '@vben/preferences';
|
||||||
|
|
||||||
import { $t } from '#/locales';
|
|
||||||
|
|
||||||
const appName = computed(() => preferences.app.name);
|
const appName = computed(() => preferences.app.name);
|
||||||
const logo = computed(() => preferences.logo.source);
|
const logo = computed(() => preferences.logo.source);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<AuthPageLayout
|
<AuthPageLayout :app-name="appName" :logo="logo">
|
||||||
:app-name="appName"
|
|
||||||
:logo="logo"
|
|
||||||
:page-title="$t('authentication.pageTitle')"
|
|
||||||
>
|
|
||||||
<!-- 自定义工具栏 -->
|
<!-- 自定义工具栏 -->
|
||||||
<!-- <template #toolbar></template> -->
|
<!-- <template #toolbar></template> -->
|
||||||
</AuthPageLayout>
|
</AuthPageLayout>
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ export const overridesPreferences = defineOverridesPreferences({
|
|||||||
name: import.meta.env.VITE_APP_TITLE,
|
name: import.meta.env.VITE_APP_TITLE,
|
||||||
enableRefreshToken: true,
|
enableRefreshToken: true,
|
||||||
},
|
},
|
||||||
|
logo: {
|
||||||
|
// source: 'https://www.agrandtech.com.cn/favicon.ico',
|
||||||
|
source: '/agt.png',
|
||||||
|
},
|
||||||
footer: {
|
footer: {
|
||||||
/** 默认关闭 footer 页脚,因为有一定遮挡 */
|
/** 默认关闭 footer 页脚,因为有一定遮挡 */
|
||||||
enable: false,
|
enable: false,
|
||||||
|
|||||||
@@ -103,5 +103,5 @@
|
|||||||
</style>
|
</style>
|
||||||
<div class="loading" id="__app-loading__">
|
<div class="loading" id="__app-loading__">
|
||||||
<span class="dot"><i></i><i></i><i></i><i></i></span>
|
<span class="dot"><i></i><i></i><i></i><i></i></span>
|
||||||
<div class="title"><%= VITE_APP_TITLE %></div>
|
<!-- <div class="title"><%= VITE_APP_TITLE %></div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -109,5 +109,5 @@
|
|||||||
</style>
|
</style>
|
||||||
<div class="loading" id="__app-loading__">
|
<div class="loading" id="__app-loading__">
|
||||||
<div class="loader"></div>
|
<div class="loader"></div>
|
||||||
<div class="title"><%= VITE_APP_TITLE %></div>
|
<!-- <div class="title"><%= VITE_APP_TITLE %></div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user