fix: test
This commit is contained in:
@@ -46,11 +46,11 @@
|
||||
<LineInfoBlock title="کد ملی" :numeric-desc="user.nationalCode || '—'" />
|
||||
<LineInfoBlock title="وضعیت تاهل" :desc="MARITAL_STATUS[user.maritalStatus] || '—'" />
|
||||
<LineInfoBlock title="جنسیت" :desc="GENDER[user.gender] || '—'" />
|
||||
<LineInfoBlock title="استان" :desc="user.address?.province?.name || '—'" />
|
||||
<LineInfoBlock title="شهر" :desc="user.address?.city?.name || '—'" />
|
||||
<LineInfoBlock title="استان" :desc="user?.province?.name || '—'" />
|
||||
<LineInfoBlock title="شهر" :desc="user?.city?.name || '—'" />
|
||||
</div>
|
||||
|
||||
<LineInfoBlock title="آدرس" :desc="user.address?.address || '—'" />
|
||||
<LineInfoBlock title="آدرس" :desc="user?.address || '—'" />
|
||||
<LineInfoBlock title="بیوگرافی" :desc="user.bio || '—'" />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
<div class="verification-item__info">
|
||||
<p class="verification-item__name">{{ fullName }}</p>
|
||||
<p class="verification-item__location">
|
||||
<span>{{ user.address?.province?.name || '—' }}</span>
|
||||
<span>{{ user?.province?.name || '—' }}</span>
|
||||
<span class="verification-item__sep">،</span>
|
||||
<span>{{ user.address?.city?.name || '—' }}</span>
|
||||
<span>{{ user?.city?.name || '—' }}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+3
-3
@@ -26,10 +26,10 @@
|
||||
:desc="profile.faMaritalStatus || MARITAL_STATUS[profile.maritalStatus] || ''"
|
||||
/>
|
||||
<LineInfoBlock title="جنسیت" :desc="profile.faGender || GENDER[profile.gender] || ''" />
|
||||
<LineInfoBlock title="استان" :desc="user.address?.province?.name || '-'" />
|
||||
<LineInfoBlock title="شهر" :desc="user.address?.city?.name || '-'" />
|
||||
<LineInfoBlock title="استان" :desc="user?.province?.name || '-'" />
|
||||
<LineInfoBlock title="شهر" :desc="user?.city?.name || '-'" />
|
||||
<div class="user-verification-details__cell user-verification-details__cell--span-3">
|
||||
<LineInfoBlock title="آدرس" :desc="user.address?.address || '-'" />
|
||||
<LineInfoBlock title="آدرس" :desc="user?.address || '-'" />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -231,9 +231,9 @@ import LineTitleBlock from '@/components/LineTitleBlock.vue'
|
||||
import ImageCropper from '@/components/form/ImageCropper.vue'
|
||||
import { GENDER, MARITAL_STATUS, ROLE_LABELS } from '@/enums'
|
||||
import { objectToFormData } from '@/utils/object-to-formdata'
|
||||
import { useUploadMediaMutation } from '@/services/query/auth'
|
||||
import TextareaField from '@/components/form/TextareaField.vue'
|
||||
import PasswordField from '@/components/form/PasswordField.vue'
|
||||
import { useUploadMediaMutation } from '@/services/query/auth'
|
||||
import DatePickerField from '@/components/form/DatePickerField.vue'
|
||||
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
||||
import BoxedIconTitleBlock from '@/components/blocks/BoxedIconTitleBlock.vue'
|
||||
@@ -337,9 +337,9 @@ watch(existingUser, (user) => {
|
||||
gender: user.profile?.gender || '',
|
||||
bio: user.profile?.bio || '',
|
||||
phoneNumber: user.phoneNumber || '',
|
||||
provinceId: user.address?.province?.id || '',
|
||||
cityId: user.address?.city?.id || '',
|
||||
address: user.address?.address || '',
|
||||
provinceId: user?.province?.id || '',
|
||||
cityId: user?.city?.id || '',
|
||||
address: user?.address || '',
|
||||
avatarId: user.profile?.avatarId || null,
|
||||
}
|
||||
initialNationalCode.value = user.nationalCode || ''
|
||||
|
||||
Reference in New Issue
Block a user