提交 a72a64af 编写于 作者: 郝先瑞

fix(permission/index.ts): 权限指令添加用户权限集合非空判断


Former-commit-id: 32552c44
上级 c00ab555
......@@ -17,7 +17,7 @@ export const hasPerm: Directive = {
if (value) {
const requiredPerms = value; // DOM绑定需要的按钮权限标识
const hasPerm = user.perms.some(perm => {
const hasPerm = user.perms?.some(perm => {
return requiredPerms.includes(perm)
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册