fix(用户管理): 修复用户列表页面加载失败问题
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

修复用户列表页面加载失败导致测试超时的问题,确保页面元素正确渲染
This commit is contained in:
iven
2026-04-19 08:46:28 +08:00
parent 0ee9d22634
commit 841766b168
174 changed files with 26366 additions and 675 deletions

View File

@@ -118,11 +118,14 @@ function Start-Services {
Write-Host "==================================================" -ForegroundColor Cyan
Write-Host ""
# 1. clean ports
# 1. clean ports (包括 Vite 可能递增到的所有端口)
Write-Host "[1/3] Checking ports..." -ForegroundColor Cyan
Write-Host "--------------------------------------------------" -ForegroundColor DarkGray
Stop-PortProcess $BackendPort "Backend"
Stop-PortProcess $FrontendPort "Frontend"
# 清理所有可能的 Vite 端口 (5174-5189)
foreach ($p in ($FrontendPort..($FrontendPort + 15))) {
Stop-PortProcess $p "Vite:$p"
}
Write-Host ""
# 2. backend
@@ -162,7 +165,7 @@ function Start-Services {
$frontendErr = Join-Path $LogDir "frontend.err"
$proc = Start-Process -FilePath "cmd.exe" `
-ArgumentList "/c","cd /d `"$webDir`" && pnpm dev" `
-ArgumentList "/c","cd /d `"$webDir`" && pnpm dev -- --strictPort" `
-RedirectStandardOutput $frontendLog -RedirectStandardError $frontendErr `
-WindowStyle Hidden -PassThru