console.log(1111, uniCloud.getCurrentUserInfo())
- 发布:2022-03-15 12:42
- 更新:2022-04-08 10:12
- 阅读:519
产品分类: uniCloud/App
示例代码:
操作步骤:
新建项目unicloud admin
unicloud admin\components\uni-data-menu\uni-data-menu.vue
运行后不显示管理菜单
新建项目unicloud admin
unicloud admin\components\uni-data-menu\uni-data-menu.vue
运行后不显示管理菜单
预期结果:
{
uid: null,
role: [],
permission: []
}
{
uid: null,
role: [],
permission: []
}
实际结果:
1111
{uid: "xxx", tokenExpired: xxx}
tokenExpired
xxx
uid
"xxx"
proto
Object
uid "xxx"
proto Object
bug描述:
不能返回uni_id_token包含的权限
8***@qq.com (作者)
解决了!
"removePermissionAndRoleFromToken": true
云函数依赖uni-config-center中配置文件,我把上面配置删除了,重新上传uni-config-center函数公共模块后可以啦
8***@qq.com (作者)
"removePermissionAndRoleFromToken": true
已经配置
2022-04-07 09:47