|
|
@@ -37,7 +37,7 @@
|
|
|
<uni-icons type="person" size="20"></uni-icons>
|
|
|
<text>性别</text>
|
|
|
</view>
|
|
|
- <text class="lastText">{{ userInfo.sex || '暂无' }}</text>
|
|
|
+ <text class="lastText">{{ sexDict[userInfo.sex] || '暂无' }}</text>
|
|
|
</view>
|
|
|
<view class="info-item">
|
|
|
<view>
|
|
|
@@ -56,6 +56,10 @@
|
|
|
import { getUserInfo } from '@/api/mine.js'
|
|
|
import { useUserStore } from '@/store/user.js'
|
|
|
import config from '@/config';
|
|
|
+ const sexDict = {
|
|
|
+ 'F': '女',
|
|
|
+ 'M': '男'
|
|
|
+ }
|
|
|
const userStore = useUserStore()
|
|
|
const userInfo = ref({})
|
|
|
// 监听页面加载
|