提交 2bdf12e9 编写于 作者: 雪洛's avatar 雪洛

fix: get user permission error

上级 1aaae352
...@@ -140,7 +140,7 @@ export default class TokenUtils { ...@@ -140,7 +140,7 @@ export default class TokenUtils {
} }
const getRoleListRes = await roleCollection.where({ const getRoleListRes = await roleCollection.where({
role_id: dbCmd.in(role) role_id: dbCmd.in(role)
}) }).get()
const permission = getDistinctArray( const permission = getDistinctArray(
getRoleListRes.data.reduce((list, item) => { getRoleListRes.data.reduce((list, item) => {
if (item.permission) { if (item.permission) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册