@@ -4,26 +4,31 @@ import icon_more_outlined from '@/assets/svg/icon_more_outlined.svg'
44import icon_embedded_outlined from ' @/assets/embedded/icon_embedded_outlined.svg'
55import IconOpeEdit from ' @/assets/svg/icon_edit_outlined.svg'
66import Lock from ' @/assets/embedded/LOGO-sql.png'
7- import { ref , unref } from ' vue'
7+ import { useAppearanceStoreWithOut } from ' @/stores/appearance'
8+ import LOGO from ' @/assets/svg/logo-custom_small.svg'
9+ import { ref , unref , computed } from ' vue'
810import { ClickOutside as vClickOutside } from ' element-plus-secondary'
911import icon_style_set_outlined from ' @/assets/svg/icon_style-set_outlined.svg'
1012
11- withDefaults (
13+ const props = withDefaults (
1214 defineProps <{
1315 name: string
1416 isBase: boolean
1517 description: string
1618 id? : string
19+ logo? : string
1720 }>(),
1821 {
1922 name: ' -' ,
2023 isBase: false ,
2124 id: ' -' ,
2225 description: ' -' ,
26+ logo: ' ' ,
2327 }
2428)
2529
2630const emits = defineEmits ([' edit' , ' del' , ' embedded' , ' ui' ])
31+ const appearanceStore = useAppearanceStoreWithOut ()
2732
2833const handleEdit = () => {
2934 emits (' edit' )
@@ -46,12 +51,21 @@ const popoverRef = ref()
4651const onClickOutside = () => {
4752 unref (popoverRef ).popperRef ?.delayHide ?.()
4853}
54+ const basePath = import .meta .env .VITE_API_BASE_URL
55+ const baseUrl = basePath + ' /system/assistant/picture/'
56+ const pageLogo = computed (() => {
57+ return props .logo .startsWith (' blob' ) ? props .logo : baseUrl + props .logo
58+ })
4959 </script >
5060
5161<template >
5262 <div class =" card" >
5363 <div class =" name-icon" >
54- <img :src =" Lock" width =" 32px" height =" 32px" />
64+ <img v-if =" props.logo" :src =" pageLogo" width =" 32px" height =" 32px" />
65+ <el-icon v-else-if =" appearanceStore.themeColor === 'custom'" size =" 32" >
66+ <LOGO ></LOGO >
67+ </el-icon >
68+ <img v-else :src =" Lock" width =" 32px" height =" 32px" />
5569 <span class =" name ellipsis" :title =" name" >{{ name }}</span >
5670 <span class =" default" :class =" isBase && 'is-base'" >{{
5771 isBase ? $t('embedded.basic_application') : $t('embedded.advanced_application')
0 commit comments