-- 检查数据库当前状态
USE soybean_admin;

-- 查看所有路由的名称和组件路径
SELECT 
    route_id,
    name AS '路由名称',
    path AS '路径',
    component AS '组件路径',
    order_num AS '排序'
FROM sys_route 
WHERE status = 1
ORDER BY order_num;

-- 特别检查可能重复的路由
SELECT 
    name,
    COUNT(*) as '出现次数'
FROM sys_route 
WHERE status = 1
GROUP BY name
HAVING COUNT(*) > 1;

-- 检查 user-manage 和 my-device 相关路由
SELECT 
    name AS '路由名称',
    component AS '组件路径'
FROM sys_route 
WHERE (name LIKE '%user%' OR name LIKE '%my_%')
  AND status = 1
ORDER BY name;
