1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

小程序首页不显示用户username

This commit is contained in:
程序员小墨 2023-04-18 04:00:42 +08:00
parent acfd799417
commit e0d1406ecd
2 changed files with 8 additions and 2 deletions

View File

@ -40,10 +40,15 @@
# IP 配置 # IP 配置
develop
内网穿透106.75.217.14 内网穿透106.75.217.14
nacos106.75.217.14 nacoshttp://106.75.217.14:8488/nacos/index.html
数据库:本地 数据库:本地
production
nacoshttp://106.75.217.14:8488/nacos/index.html
数据库:服务器上
# QCloud # QCloud
@ -56,6 +61,7 @@ SecretKey 22sVt494mGZeV7sQkqwxnNjneHesqXxA
# 门禁端网页 # 门禁端网页
https://epp.only4.work/access/index.html https://epp.only4.work/access/index.html
https://epp-prod.only4.work/access/index.html

View File

@ -41,7 +41,7 @@ Page({
debugText: JSON.stringify(options, null, 4), debugText: JSON.stringify(options, null, 4),
userInfo: userInfo, userInfo: userInfo,
userGroup: userGroup, userGroup: userGroup,
displayUsername: userInfo ? (`${userInfo.realname} (${userInfo.username})`) : "请登录", displayUsername: userInfo ? (`${userInfo.realname}`) : "请登录",
filterMenuItems: this.getFilterMenuItems(menuItemDict, userGroup) filterMenuItems: this.getFilterMenuItems(menuItemDict, userGroup)
}) })
console.log("menuItemDict", menuItemDict) console.log("menuItemDict", menuItemDict)