mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-08-02 12:08:06 +00:00
feat: 添加用户头像
This commit is contained in:
23
src/components/common/UserAvatar/index.vue
Normal file
23
src/components/common/UserAvatar/index.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang='ts'>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex items-center">
|
||||
<div class="w-10 h-10 overflow-hidden rounded-full">
|
||||
<img class="object-cover" src="@/assets/avatar.jpg" alt="avatar">
|
||||
</div>
|
||||
<div class="ml-2">
|
||||
<h2 class="text-sm font-bold">
|
||||
Redon
|
||||
</h2>
|
||||
<p class="text-xs text-gray-500">
|
||||
#0827
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
Reference in New Issue
Block a user