|
|
@@ -25,7 +25,7 @@ const router = useRouter()
|
|
|
const { t } = useI18n()
|
|
|
const { openRecharge } = useRecharge()
|
|
|
const { isPlaymate, userProfile, wallet, playmateInfo, refreshUser, logout } = useAuth()
|
|
|
-
|
|
|
+const img = useImage()
|
|
|
const { copy, isSupported } = useClipboard()
|
|
|
|
|
|
onMounted(() => {
|
|
|
@@ -125,11 +125,12 @@ const handleLogout = async () => {
|
|
|
class="mine-hero__avatar"
|
|
|
@click="handleEditProfile"
|
|
|
>
|
|
|
- <img
|
|
|
- :src="userProfile?.avatar || '/placeholder.png'"
|
|
|
- :alt="userProfile?.nickname || 'User avatar'"
|
|
|
+ <NuxtImg
|
|
|
+ :src="userProfile?.avatar"
|
|
|
+ :alt="userProfile?.nickname || 'avatar'"
|
|
|
loading="lazy"
|
|
|
- >
|
|
|
+ :placeholder="img('/avatar.png')"
|
|
|
+ />
|
|
|
<EditSvg class="mine-hero__avatar-icon" />
|
|
|
</div>
|
|
|
<div class="mine-hero__info">
|