admin/fix_all_routes_final.bat

25 lines
740 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ========================================
echo 最终完整修复所有路由配置
echo ========================================
echo.
echo 此脚本将修复:
echo 1. 路由名称(与前端 routeMap 保持一致)
echo 2. 组件路径(父路由用 layout.base子路由用 view.xxx
echo 3. 角色菜单配置(使用正确的路由名称)
echo.
mysql -u root -proot < fix_all_routes_final.sql
echo.
echo ========================================
echo 修复完成!
echo ========================================
echo.
echo 下一步操作:
echo 1. 重启后端服务(运行 backend\start.bat
echo 2. 清除浏览器缓存Ctrl+Shift+Delete
echo 3. 刷新浏览器页面Ctrl+F5
echo.
pause