Skip to content

Commit

Permalink
fix:新增公告为空的兜底逻辑 (#108)
Browse files Browse the repository at this point in the history
* feat:更新Taro版本,新增page.config.ts文件

* fix:修复查看空课表undefined的bug

* fix:修复git action构建失效的bug

* fix:修复git action构建失效的bug

* fix:新增公告为空的兜底逻辑
  • Loading branch information
xixiIBN5100 authored Sep 28, 2024
1 parent fa7acc9 commit 7ba5095
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/FixedQuickView/InformationQuickView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 7ba5095

Please sign in to comment.