物联网问题解决,只差最后测试完善

This commit is contained in:
xuqiuyun
2025-10-23 17:28:06 +08:00
parent 0249dfc5bb
commit ecccd025d1
72 changed files with 7372 additions and 653 deletions

View File

@@ -0,0 +1,28 @@
// 测试用户专属权限是否生效
console.log('=== 测试用户专属权限 ===');
// 模拟用户登录
const testUser = {
id: 3,
name: '12.27新增姓名',
mobile: '15500000000',
roleId: 1
};
console.log('测试用户:', testUser);
// 检查权限查询逻辑
console.log('=== 权限查询逻辑测试 ===');
console.log('1. 用户ID:', testUser.id);
console.log('2. 角色ID:', testUser.roleId);
console.log('3. 是否超级管理员角色:', testUser.roleId === 1);
console.log('=== 预期行为 ===');
console.log('1. 应该先查询用户专属权限');
console.log('2. 如果有专属权限,使用专属权限');
console.log('3. 如果没有专属权限,使用角色权限');
console.log('4. 超级管理员权限作为fallback');
console.log('=== 检查前端权限数据 ===');
// 这里需要用户手动检查浏览器控制台的权限数据
console.log('请检查浏览器控制台中的权限检查调试信息');