fix:登录页网站标题、LOGO无法展示原因

This commit is contained in:
Bull-BCLS
2024-04-15 23:31:21 +08:00
parent 721b30e185
commit 539c7d7b68
3 changed files with 9 additions and 3 deletions

View File

@@ -19,7 +19,8 @@
@submit="handleLogin"
>
<h3 class="login-right__title">
<img :src="appStore.getLogo()" alt="Logo" height="33" />
<img v-if="webLogo" class="logo" :src="webLogo" alt="logo" height="33"/>
<img v-else class="logo" src="@/assets/images/logo.svg" alt="logo"/>
<span>{{ appStore.getTitle() }}</span>
</h3>
<a-form-item field="username">
@@ -75,6 +76,10 @@ import { useLoading } from '@/hooks'
import { encryptByRsa } from '@/utils/encrypt'
const appStore = useAppStore()
appStore.initWebConfig()
const webTitle = computed(() => appStore.getTitle());
const webLogo = computed(() => appStore.getLogo());
defineOptions({ name: 'Login' })