fix: coalesce concurrent notification count reads

This commit is contained in:
2026-10-12 00:24:21 +08:00
parent 5751973c83
commit 3692f9d27f
5 changed files with 66 additions and 5 deletions
@@ -36,7 +36,7 @@ test('keeps customer message actions first and covers the requested local states
assert.match(source, /notification-state--error/)
assert.match(source, /暂无消息/)
assert.doesNotMatch(source, /清空已读|删除消息/)
assert.match(source, /Promise\.all\(\[load\(\), notifications\.refreshUnreadCount\(\)\]\)/)
assert.match(source, /Promise\.all\(\[load\(\), notifications\.refreshUnreadCount\(true\)\]\)/)
assert.match(source, /auth\.hasPermission\('merchant:notification:read'\)/)
assert.match(source, /auth\.hasPermission\('merchant:notification:read-all'\)/)
assert.match(source, /v-if="canMarkAllRead"/)