🎯 核心修复内容
1. NotificationDetailDialog.vue
const props = withDefaults(defineProps<Props>(), {
visible: false, // ✅ 新增: 防止undefined错误
notification: null,
isLoading: false,
isMarkingRead: false,
readStatusChecker: () => false
})
2. Home.vue - v-model绑定标准化
<!-- 修复后 -->
<NotificationDetailDialog
v-model:visible="showNotificationDetail"
:notification="uiStore.selectedNotification"
:read-status-checker="notificationStore.isRead"
@mark-read="handleMarkAsRead"
/>
3. 重复属性删除
// ❌ 删除重复的计算属性定义:
// - showAllNotifications (删除行510-530)
// - campusNews, newsLoading等 (删除行625-629)
// - handleDebugTestResult等处理函数 (删除行685-699)
// ✅ 保留: 早期定义的唯一版本 (行270-314)