重构: 前端Vue3+Tailwind+Vite构建管线+设置组件拆分

This commit is contained in:
2026-05-27 02:42:25 +08:00
parent f3148bf72f
commit aee7997195
44 changed files with 4309 additions and 1720 deletions

View File

@@ -12,6 +12,14 @@ $ErrorActionPreference = "Stop"
$project = "u-desktop"
$buildDir = "dist"
# 构建 Web UI
Write-Host "=== 构建 Web UI ===" -ForegroundColor Cyan
Push-Location web-ui
npm ci --prefer-offline
npm run build
if ($LASTEXITCODE -ne 0) { Write-Host "Web UI 构建失败" -ForegroundColor Red; exit 1 }
Pop-Location
# 清理
if (Test-Path $buildDir) { Remove-Item $buildDir -Recurse -Force }
New-Item -ItemType Directory -Force -Path $buildDir | Out-Null