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

36 lines
841 B
Batchfile
Raw Permalink Normal View History

2026-02-28 17:26:03 +08:00
@echo off
chcp 65001 >nul
echo ========================================
echo 修复pages.json配置错误
echo ========================================
echo.
echo [问题] activity-package中配置了不存在的页面路径
echo - 错误路径: pages/course/detail
echo - 正确路径: pages/academy/course-detail
echo.
echo [1/2] 清除编译缓存...
cd peidu\uniapp
if exist dist (
rmdir /s /q dist
echo 已清除 dist 目录
)
if exist unpackage (
rmdir /s /q unpackage
echo 已清除 unpackage 目录
)
if exist node_modules\.cache (
rmdir /s /q node_modules\.cache
echo 已清除 node_modules\.cache
)
echo.
echo [2/2] 现在请在微信开发者工具中点击"编译"按钮
echo.
echo ========================================
echo 修复完成!
echo ========================================
echo.
pause