feat: 更新 API 类型和组件,重命名市场为交易,添加操作包装器组件
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user