peixue-dev/Archive/[一次性]彻底修复家长端按钮错误-2026-02-01.bat

49 lines
1.2 KiB
Batchfile
Raw Normal View History

2026-02-28 17:26:03 +08:00
@echo off
chcp 65001 >nul
echo ========================================
echo 彻底修复家长端按钮错误
echo ========================================
echo.
cd /d "%~dp0..\peidu\uniapp"
echo [1/5] 停止所有编译进程...
taskkill /F /IM node.exe 2>nul
timeout /t 2 /nobreak >nul
echo ✓ 已停止所有 Node 进程
echo.
echo [2/5] 清除所有编译缓存...
if exist "dist" rmdir /s /q "dist"
if exist "unpackage" rmdir /s /q "unpackage"
if exist "node_modules\.cache" rmdir /s /q "node_modules\.cache"
if exist "node_modules\.vite" rmdir /s /q "node_modules\.vite"
if exist ".temp" rmdir /s /q ".temp"
echo ✓ 已清除所有缓存目录
echo.
echo [3/5] 清除微信开发者工具缓存...
echo 请手动操作:
echo 1. 在微信开发者工具中点击 "工具" - "清除缓存"
echo 2. 选择 "清除全部缓存"
echo.
echo 按任意键继续...
pause >nul
echo.
echo [4/5] 重新编译小程序...
start /wait cmd /c "npm run dev:mp-weixin"
echo.
echo [5/5] 编译完成
echo.
echo ========================================
echo 修复完成
echo ========================================
echo.
echo 接下来请:
echo 1. 在微信开发者工具中点击 "编译"
echo 2. 测试家长端首页的所有按钮
echo.
pause