diff --git a/client/src/views/home/DashboardView.vue b/client/src/views/home/DashboardView.vue index 4571288..938fa45 100644 --- a/client/src/views/home/DashboardView.vue +++ b/client/src/views/home/DashboardView.vue @@ -149,7 +149,7 @@ onMounted(async () => {
最近更新
-
{{ latestNews.length > 0 ? formatTime(latestNews[0].createdAt) : '-' }}
+
{{ latestNews && latestNews.length > 0 && latestNews[0] ? formatTime(latestNews[0].createdAt) : '-' }}