张涛 1 rok temu
rodzic
commit
61863f27b9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/directive/hasPermi/index.js

+ 1 - 1
src/directive/hasPermi/index.js

@@ -10,7 +10,7 @@ function hasPermissionDirective(el, binding) {
 
     // 尝试解析用户权限
     const user_permissions = localST_UserInfo.getItem();
-    if (typeof userPermissions !== 'string') {
+    if (typeof user_permissions !== 'string') {
       console.error('用户权限不是字符串格式');
       return;
     }