fix: update admin flows and review report

This commit is contained in:
2026-04-10 08:09:48 +08:00
parent f1bbba48c3
commit dbff591039
7 changed files with 610 additions and 9 deletions

View File

@@ -165,7 +165,7 @@ try {
$env:GOCACHE = $goCacheDir
$env:GOMODCACHE = $goModCacheDir
$env:GOPATH = $goPathDir
go build -o $serverExePath .\cmd\server\main.go
go build -o $serverExePath ./cmd/server
if ($LASTEXITCODE -ne 0) {
throw 'server build failed'
}

View File

@@ -530,13 +530,13 @@ describe('Interaction Behavior', () => {
const handleSearch = vi.fn()
let timeoutId: ReturnType<typeof setTimeout>
const TestSearchInput = ({ onSearch }: { onSearch: (value: string) => void }) => {
let timeout: ReturnType<typeof setTimeout>
return (
<input
onChange={(e) => {
clearTimeout(timeout)
timeout = setTimeout(() => onSearch(e.target.value), 300)
clearTimeout(timeoutId)
timeoutId = setTimeout(() => onSearch(e.target.value), 300)
}}
/>
)