Ben Lin
2024-09-12 a4ee6ba0ca28833cbbb8cf0e675561b10fa4c1af
src/components/Application/src/AppLogo.vue
@@ -1,10 +1,10 @@
<!--
 * @Description: file content
 * @Author: your name
 * @Author: Vben
 * @version: 
 * @Date: 2024-06-17 14:51:25
 * @LastEditors: your name
 * @LastEditTime: 2024-06-17 18:35:54
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-07-19 17:12:04
-->
<!--
 * @Author: Vben
@@ -12,14 +12,14 @@
-->
<template>
  <div class="anticon" :class="getAppLogoClass" @click="goHome">
    <img src="../../../assets/images/logo.png" />
    <img :src="logoUrl" />
    <div class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle">
      {{ title }}
    </div>
  </div>
</template>
<script lang="ts" setup>
  import { computed, unref } from 'vue';
  import { computed, ref, unref } from 'vue';
  import { useGlobSetting } from '@/hooks/setting';
  import { useGo } from '@/hooks/web/usePage';
  import { useMenuSetting } from '@/hooks/setting/useMenuSetting';
@@ -45,7 +45,8 @@
  const { prefixCls } = useDesign('app-logo');
  const { getCollapsedShowTitle } = useMenuSetting();
  const userStore = useUserStore();
  const { title } = useGlobSetting();
  const { title, systemType, downloadUrl } = useGlobSetting();
  const logoUrl = ref(`${downloadUrl}\\${systemType}-logo.png`)
  const go = useGo();
  const getAppLogoClass = computed(() => [