fix(aihr): harden broadcast and mobile assistant flows

This commit is contained in:
2026-07-23 03:35:36 +08:00
parent 62c8b41672
commit 4b31848e3d
30 changed files with 1127 additions and 208 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ test('银城大喇叭仅使用认证后的真实广播接口', async () => {
test('首页喇叭只在确认有未读消息时显示红点,未登录保留回跳', async () => {
const page = await read('../src/pages/user/today/index.vue');
assert.match(page, /v-if="hasUnreadBroadcast" class="bell-dot"/);
assert.match(page, /v-if="hasUnreadBroadcast" class="bell-dot(?:\s+[^\"]*)?"/);
assert.match(page, /getBroadcastUnreadCount/);
assert.match(page, /const unreadBroadcastCount = ref<number \| null>\(null\)/);
assert.match(page, /const hasUnreadBroadcast = computed\(\(\) => typeof unreadBroadcastCount\.value === 'number'/);