-- 将知识库管理调整为顶级菜单，与心理测评管理同级

-- 1. 修改知识库管理为顶级菜单
UPDATE sys_menu 
SET parent_id = 0,
    order_num = 2,  -- 设置排序，放在心理测评管理(order_num=1)之后
    icon = 'documentation'  -- 设置图标
WHERE menu_id = 2209;

-- 2. 验证修改
SELECT menu_id, menu_name, parent_id, order_num, path, icon
FROM sys_menu 
WHERE parent_id = 0
ORDER BY order_num;

-- 3. 查看知识库管理的详细配置
SELECT menu_id, menu_name, parent_id, order_num, path, component, icon
FROM sys_menu 
WHERE menu_id = 2209;

-- 完成！退出登录重新登录查看
SELECT '修改完成！请退出登录后重新登录' AS message;
