peixue-dev/Archive/[一次性]修复pages配置重复错误-2026-02-01.bat

44 lines
972 B
Batchfile

@echo off
chcp 65001 >nul
echo ========================================
echo 修复 pages/academy/course-detail 重复错误
echo ========================================
echo.
cd /d "%~dp0..\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] 重新编译小程序...
call npm run dev:mp-weixin
echo.
echo [3/3] 检查编译结果...
if exist "dist\dev\mp-weixin\app.json" (
echo ✓ 编译成功
echo.
echo 请在微信开发者工具中查看是否还有重复错误
) else (
echo ✗ 编译失败,请检查错误信息
)
echo.
echo ========================================
echo 修复完成
echo ========================================
pause