feat: 更新 API 类型和组件,重命名市场为交易,添加操作包装器组件

This commit is contained in:
2025-12-15 00:25:03 +07:00
parent a2ca00243e
commit 8d0ba768a9
9 changed files with 104 additions and 23 deletions

View File

@@ -11,7 +11,7 @@ const userProfile = ref<UserProfileData | null>(null);
async function getUserProfile() {
const { data } = await client.api.user.profile.get();
if (data) {
userProfile.value = data;
userProfile.value = data.userProfile;
}
}
@@ -116,19 +116,19 @@ onMounted(() => {
<ui-avatar class="size-25" />
</div>
<div class="mt-4 text-lg font-semibold">
{{ userProfile?.fullName || 'User Name' }}
{{ userProfile?.nickname || 'User Name' }}
</div>
</div>
<!-- User Info List -->
<ion-list class="mt-5">
<ion-item button @click="handleEditField('fullName', 'Full Name')">
<ion-item button @click="handleEditField('nickname', 'Nickname')">
<ion-label>
<p class="text-xs text-text-400">
Full Name
</p>
<h2 class="mt-1">
{{ userProfile?.fullName || 'Not set' }}
{{ userProfile?.nickname || 'Not set' }}
</h2>
</ion-label>
</ion-item>