|
@@ -17,7 +17,7 @@
|
|
|
:height="40"
|
|
:height="40"
|
|
|
:src="userInfo.avatar"
|
|
:src="userInfo.avatar"
|
|
|
/>
|
|
/>
|
|
|
- <view class="head-name">{{ isLogined ? "微信用户" : "请登录" }}</view>
|
|
|
|
|
|
|
+ <view class="head-name">{{ isLogined ? userName : "请登录" }}</view>
|
|
|
<!-- <view class="head-name">{{ userInfo.name }}</view> -->
|
|
<!-- <view class="head-name">{{ userInfo.name }}</view> -->
|
|
|
</view>
|
|
</view>
|
|
|
<view class="main-content mt6">
|
|
<view class="main-content mt6">
|
|
@@ -59,6 +59,7 @@ const userInfo = reactive({
|
|
|
})
|
|
})
|
|
|
const toast = useToast()
|
|
const toast = useToast()
|
|
|
const isLogined = computed(() => !!useUserStore().token)
|
|
const isLogined = computed(() => !!useUserStore().token)
|
|
|
|
|
+const userName = computed(() => useUserStore().userInfo?.name || "微信用户")
|
|
|
|
|
|
|
|
function toAddUserHub() {
|
|
function toAddUserHub() {
|
|
|
if (isLogined.value) {
|
|
if (isLogined.value) {
|