修改角色为多角色

This commit is contained in:
1147680382@qq.com
2025-06-05 17:23:38 +08:00
parent dd56481b52
commit b57cdf35a2
10 changed files with 153 additions and 203 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export default {
mounted(el, binding) {
const { value } = binding
const userInfo = JSON.parse(sessionStorage.getItem('userInfo') || '{}')
const userRole = userInfo.role || 0
const userRole = userInfo.roles || 0
// 如果没有权限配置,默认显示
if (!value) {