fix(finance): avoid showing zero before balance loads

This commit is contained in:
2026-09-05 12:42:59 +08:00
parent 46a91fbca0
commit 85871d5c2c
2 changed files with 12 additions and 6 deletions
@@ -37,6 +37,8 @@ test('renders server balances, ledger and recharge states without internal ident
assert.match(viewSource, /empty-text="暂无充值申请"/)
assert.match(viewSource, /account-state--error/)
assert.match(viewSource, /v-loading="pageLoading"/)
assert.match(viewSource, /function formatAccountAmount[\s\S]*value == null \? '—' : formatAmount\(value\)/)
assert.match(viewSource, /formatAccountAmount\(account\?\.actualBalance\)/)
assert.doesNotMatch(viewSource, /requestId|ledgerId|customerId|tenantId/)
})