|
|
@@ -2,7 +2,7 @@ import { useState } from 'react'
|
|
|
import { View, Text, Image } from '@tarojs/components'
|
|
|
import Taro from '@tarojs/taro'
|
|
|
import { cn } from '@/utils/cn'
|
|
|
-import { Button } from '@/components/ui/button'
|
|
|
+import default_avatar from '../../../images/default_avatar.jpg'
|
|
|
import { uploadFromSelect, type UploadResult } from '@/utils/minio'
|
|
|
|
|
|
interface AvatarUploadProps {
|
|
|
@@ -94,7 +94,7 @@ export function AvatarUpload({
|
|
|
style={{ width: avatarSize, height: avatarSize }}
|
|
|
>
|
|
|
<Image
|
|
|
- src={currentAvatar || 'https://images.unsplash.com/photo-1494790108755-2616b612b786?w=160&h=160&fit=crop&crop=face'}
|
|
|
+ src={currentAvatar || default_avatar}
|
|
|
mode="aspectFill"
|
|
|
className="w-full h-full"
|
|
|
/>
|