ny
23 小时以前 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<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>