<script lang="ts" setup>
|
import { computed, ref } from 'vue';
|
|
import { useGlobSetting } from '@jnpf/hooks';
|
|
import { Image as AImage } from 'ant-design-vue';
|
|
import loginLogo from '#/assets/images/login_logo.png';
|
|
const globSetting = useGlobSetting();
|
const apiUrl = ref(globSetting.apiURL);
|
|
const getLoginIcon = computed(() => localStorage.getItem('_APP_LOGIN_LOGO_') || '');
|
</script>
|
<template>
|
<div>
|
<AImage class="login-logo" :src="apiUrl + getLoginIcon" :fallback="loginLogo" :preview="false" v-if="getLoginIcon" />
|
<img class="login-logo" :src="loginLogo" v-else />
|
</div>
|
</template>
|