fix(Step2EnvSetup): update expectedTotal only when API returns a valid value to prevent overwriting existing data

This commit is contained in:
666ghj 2026-01-29 10:58:36 +08:00
parent 40f7035947
commit 0b71f89f96

View file

@ -914,7 +914,10 @@ const fetchProfilesRealtime = async () => {
if (res.success && res.data) {
const prevCount = profiles.value.length
profiles.value = res.data.profiles || []
expectedTotal.value = res.data.total_expected
// API
if (res.data.total_expected) {
expectedTotal.value = res.data.total_expected
}
//
const types = new Set()