admin/fix_fullscreen_issue.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

47 lines
1.2 KiB
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
chcp 65001 >nul
echo ========================================
echo 修复"我的设备""设备申请"全屏显示问题
echo ========================================
echo.
echo 正在执行修复...
mysql -u root -proot < fix_fullscreen_issue.sql
if %errorlevel% equ 0 (
echo.
echo ========================================
echo 修复成功!
echo ========================================
echo.
echo 下一步操作:
echo 1. 重启后端服务(必须!)
echo - 停止当前后端Ctrl+C
echo - cd backend
echo - mvn spring-boot:run
echo.
echo 2. 清除浏览器缓存
echo - 按 Ctrl+Shift+Delete
echo - 选择"全部时间"
echo - 清除缓存
echo.
echo 3. 重新登录测试
echo - 点击"我的设备"菜单
echo - 点击"设备申请"菜单
echo - 应该正常显示在布局中,不再全屏
echo.
) else (
echo.
echo ========================================
echo 执行失败!
echo ========================================
echo.
echo 请检查:
echo 1. MySQL 服务是否运行
echo 2. 数据库连接信息是否正确
echo 3. 数据库 soybean_admin 是否存在
echo.
)
pause