@echo off chcp 65001 >nul set DIST=%~dp0dist\dev\mp-weixin if exist "%DIST%\custom-tab-bar\index.vue" ( del /f /q "%DIST%\custom-tab-bar\index.vue" echo ✓ 已删除 custom-tab-bar/index.vue ) else ( echo - 没有找到 index.vue,无需清理 ) powershell -Command "$c=Get-Content '%DIST%\project.config.json' -Raw -ErrorAction SilentlyContinue | ConvertFrom-Json; if($c -and !$c.setting.lazyCodeLoading){$c.setting.lazyCodeLoading='requiredComponents';$c | ConvertTo-Json -Depth 10 | Set-Content '%DIST%\project.config.json'; Write-Host '✓ 已设置 lazyCodeLoading';}else{Write-Host '- lazyCodeLoading 无需设置'}" echo. echo 修复完成,请在微信开发者工具中重新导入项目 pause