diff --git a/src/App.vue b/src/App.vue index 5e2da52..a47d7d7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,12 +1,12 @@ diff --git a/src/pages/AnnouncementPage.vue b/src/pages/AnnouncementPage.vue index 4171b15..ea4d7d6 100644 --- a/src/pages/AnnouncementPage.vue +++ b/src/pages/AnnouncementPage.vue @@ -10,15 +10,14 @@ const horizontal_content = ref("公告加载中..."); const store = useWsStore(); store.$subscribe((mutation, state) => { vertical_content.value = - (state.data3.deliveryNotification || []).map( - (item) => item.deliveryContent || "" - ).join('').replaceAll(//g, '') || "暂无公告"; + (state.data3.deliveryNotification || []) + .map((item) => item.deliveryContent || "") + .join("") + .replaceAll(//g, "") || "暂无公告"; horizontal_content.value = (state.data2.deliveryMsg || []) .map((item) => item.deliveryContent || "") .join("\t") || "暂无公告"; - - console.log('vertical_content.value', vertical_content.value) }); // handlers