mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 18:07:47 +08:00
- 前端 API 层、stores、conversation 解析器、组件全面替换 any 为 unknown/具体类型 - 错误处理统一使用 parseApiError/getErrorStatus 替代 err.response?.data?.detail 模式 - 后端 handler/TaskService/UsageLifecycle/StreamTracker 链路传递 request_headers/request_body - streaming/pending 状态更新时可补写客户端和提供商的请求头及请求体 - 新增 TaskService 和 UsageService 相关测试
30 lines
533 B
Vue
30 lines
533 B
Vue
<script setup lang="ts">
|
|
import { AvatarImage as AvatarImagePrimitive } from 'radix-vue'
|
|
import { cn } from '@/lib/utils'
|
|
import { computed } from 'vue'
|
|
|
|
interface Props {
|
|
class?: string
|
|
src?: string
|
|
alt?: string
|
|
}
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
class: undefined,
|
|
src: undefined,
|
|
alt: ''
|
|
})
|
|
|
|
const imageClass = computed(() =>
|
|
cn('aspect-square h-full w-full', props.class)
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<AvatarImagePrimitive
|
|
:class="imageClass"
|
|
:src="src || ''"
|
|
:alt="alt"
|
|
/>
|
|
</template>
|