admin/fix_my_routes_naming.bat
lvfengfree 44cb688072 fix: 修复路由命名问题 - 将my_device和my_application改为连字符格式
- 问题:数据库中路由使用下划线(my_device),前端期望连字符(my-device)
- 导致路由无法匹配,页面全屏显示
- 添加诊断和修复脚本:
  * check_route_naming.sql - 检查路由命名问题
  * fix_my_routes_naming.sql - 修复路由命名
  * fix_my_routes_naming.bat - 批处理执行脚本
- 修复后需要重启后端服务和清除浏览器缓存
2026-03-01 10:36:18 +08:00

21 lines
555 B
Batchfile
Raw Permalink 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
chcp 65001 >nul
echo ========================================
echo 修复 my_device 和 my_application 路由命名
echo ========================================
echo.
mysql -uroot -proot -hlocalhost -P3306 < fix_my_routes_naming.sql
echo.
echo ========================================
echo 修复完成!
echo ========================================
echo.
echo 下一步操作:
echo 1. 重启后端服务(运行 restart_backend_and_test.bat
echo 2. 清除浏览器缓存Ctrl+Shift+Delete
echo 3. 重新登录测试
echo.
pause