diff --git a/src/components/FixedQuickView/InformationQuickView/index.vue b/src/components/FixedQuickView/InformationQuickView/index.vue index 01e16407..bf300e32 100644 --- a/src/components/FixedQuickView/InformationQuickView/index.vue +++ b/src/components/FixedQuickView/InformationQuickView/index.vue @@ -33,9 +33,11 @@ const handleClick = () => { const currentPost = ref<{ type: string; content: string }>({ type: "announcement", - content: serviceStore.announcement.announcements[ + content: serviceStore.announcement ? + serviceStore.announcement.announcements[ serviceStore.announcement.announcements.length - 1 || 0 - ].content.replace(/\\n/g, "\n"), + ].content.replace(/\\n/g, "\n") + : '' }); const updateCurrentPost = () => {