商城列表需要优化
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { useUserStore } from '@/stores/user'
|
||||
import { useAuthUser } from '@/composables/useAuthUser'
|
||||
|
||||
const bottomList = [
|
||||
{ name: '我的钱包', icon: 'wallet' },
|
||||
@@ -10,10 +10,7 @@
|
||||
{ name: '在线客服', icon: 'customer' },
|
||||
{ name: '系统设置', icon: 'system' }
|
||||
]
|
||||
|
||||
const { userInfo } = useUserStore()
|
||||
|
||||
console.log(userInfo)
|
||||
const { userInfo } = useAuthUser()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -26,8 +23,8 @@
|
||||
class="avatar"
|
||||
></image>
|
||||
<view class="nickname">
|
||||
<text class="name">{{ userInfo.userName }}</text>
|
||||
<text class="name">ID:{{ userInfo.userId }}</text>
|
||||
<text class="name">{{ userInfo?.userName || '' }}</text>
|
||||
<text class="name">ID:{{ userInfo?.userId || '' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<image
|
||||
|
||||
Reference in New Issue
Block a user