From 5a4d00a7883b0822e824c6ceeb8115286a754a73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com>
Date: Wed, 7 Aug 2024 00:03:07 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=E5=89=8D=E7=AB=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.Bbs.Vue3/src/hubs/bbsNoticeHub.js | 4 +-
Yi.Bbs.Vue3/src/layout/AppHeader.vue | 74 +++++++++++++++++-----------
2 files changed, 47 insertions(+), 31 deletions(-)
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 @@
-
-
-
-
-
+
+
+
+
+
@@ -85,19 +83,27 @@
-
-
+
+
+
+
+
+
[已读]通知时间: {{ dayjs(item.creationTime).format('YYYY年M月D日 HH时mm分ss秒') }}
+
+
+
+ [未读]通知时间: {{ dayjs(item.creationTime).format('YYYY年M月D日 HH时mm分ss秒') }}
-
-
+
+
-
+
@@ -118,6 +124,7 @@