diff --git a/Yi.Bbs.Vue3/src/hubs/bbsNoticeHub.js b/Yi.Bbs.Vue3/src/hubs/bbsNoticeHub.js index 88d06097..f266a69b 100644 --- a/Yi.Bbs.Vue3/src/hubs/bbsNoticeHub.js +++ b/Yi.Bbs.Vue3/src/hubs/bbsNoticeHub.js @@ -4,11 +4,11 @@ import { dayjs } from 'element-plus' const receiveMsg=(connection)=> { const noticeStore = useNoticeStore(); - connection.on("Personal", (message) => { + connection.on("Personal", (message,creationTime) => { noticeStore.addNotice({ message:message, isRead:false, - creationTime:dayjs().format() + creationTime }); }); }; diff --git a/Yi.Bbs.Vue3/src/layout/AppHeader.vue b/Yi.Bbs.Vue3/src/layout/AppHeader.vue index 79fb90af..6b0edc98 100644 --- a/Yi.Bbs.Vue3/src/layout/AppHeader.vue +++ b/Yi.Bbs.Vue3/src/layout/AppHeader.vue @@ -11,9 +11,7 @@ 主页 开始 + style="color: red;font-weight: bolder;font-size: large;">开始 @@ -61,7 +59,7 @@
- + @@ -69,11 +67,11 @@ - - - - - + + + + + @@ -118,6 +124,7 @@