From 7ba5095f5dc4ce30448ad665cd366a343a011e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BB=E8=B0=B1?= <144224541+xixiIBN5100@users.noreply.github.com> Date: Sat, 28 Sep 2024 16:35:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=96=B0=E5=A2=9E=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E7=9A=84=E5=85=9C=E5=BA=95=E9=80=BB=E8=BE=91?= =?UTF-8?q?=20(#108)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat:更新Taro版本,新增page.config.ts文件 * fix:修复查看空课表undefined的bug * fix:修复git action构建失效的bug * fix:修复git action构建失效的bug * fix:新增公告为空的兜底逻辑 --- .../FixedQuickView/InformationQuickView/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 = () => {