@echo off chcp 65001 >nul echo ======================================== echo 清除缓存并重新编译 - 快速预约游客模式 echo ======================================== echo. cd peidu\uniapp echo [1/3] 删除编译缓存... if exist "dist" ( rmdir /s /q "dist" echo ✓ 已删除 dist 目录 ) else ( echo ✓ dist 目录不存在 ) if exist "node_modules\.cache" ( rmdir /s /q "node_modules\.cache" echo ✓ 已删除 node_modules\.cache 目录 ) else ( echo ✓ node_modules\.cache 目录不存在 ) echo. echo [2/3] 等待2秒... timeout /t 2 /nobreak >nul echo. echo [3/3] 重新编译小程序... call npm run dev:mp-weixin echo. echo ======================================== echo 编译完成! echo 请在微信开发者工具中: echo 1. 点击"编译" 按钮 echo 2. 或按 Ctrl+B 重新编译 echo ======================================== pause