From 6214e10f0148a674bc843db3450e5b134f677933 Mon Sep 17 00:00:00 2001
From: Xwen <929716663@qq.com>
Date: Sat, 6 Jan 2024 14:17:28 +0800
Subject: [PATCH 1/5] =?UTF-8?q?feat:=E7=99=BB=E5=87=BA=E7=9A=84=E6=97=B6?=
=?UTF-8?q?=E5=80=99=E6=96=AD=E5=BC=80=E8=BF=9E=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.Bbs.Vue3/src/layout/AppHeader.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Yi.Bbs.Vue3/src/layout/AppHeader.vue b/Yi.Bbs.Vue3/src/layout/AppHeader.vue
index fc5f63c9..59fa9665 100644
--- a/Yi.Bbs.Vue3/src/layout/AppHeader.vue
+++ b/Yi.Bbs.Vue3/src/layout/AppHeader.vue
@@ -84,6 +84,7 @@ import useUserStore from "@/stores/user.js";
import useConfigStore from "@/stores/config";
import useAuths from "@/hooks/useAuths";
import { Session } from "@/utils/storage";
+import signalR from "@/utils/signalR";
const { getToken, clearStorage } = useAuths();
const configStore = useConfigStore();
@@ -103,6 +104,7 @@ const logout = async () => {
}).then(async () => {
//异步
await userStore.logOut();
+ await signalR.close();
//删除成功后,跳转到主页
router.push("/login");
ElMessage({
From deec60d1a95c1704d7bbbdff13bebd1d86ce25cd Mon Sep 17 00:00:00 2001
From: Xwen <929716663@qq.com>
Date: Sat, 6 Jan 2024 14:23:51 +0800
Subject: [PATCH 2/5] =?UTF-8?q?feat:=E4=B8=8D=E7=BC=93=E5=AD=98=E6=8E=A8?=
=?UTF-8?q?=E9=80=81=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.Bbs.Vue3/src/stores/socket.js | 4 ----
1 file changed, 4 deletions(-)
diff --git a/Yi.Bbs.Vue3/src/stores/socket.js b/Yi.Bbs.Vue3/src/stores/socket.js
index 09c79c82..97ee4be1 100644
--- a/Yi.Bbs.Vue3/src/stores/socket.js
+++ b/Yi.Bbs.Vue3/src/stores/socket.js
@@ -14,10 +14,6 @@ const socketStore = defineStore("socket", {
this.onlineNum = value;
},
},
- persist: {
- key: "onlineInfo",
- storage: window.sessionStorage,
- },
});
export default socketStore;
From d506754e636b1ddce29a8bb8b17c4f1f66b724a0 Mon Sep 17 00:00:00 2001
From: Xwen <929716663@qq.com>
Date: Sat, 6 Jan 2024 16:41:57 +0800
Subject: [PATCH 3/5] =?UTF-8?q?feat:=E6=9D=BF=E5=9D=97=E9=A1=B5=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E7=BD=AE=E9=A1=B6=E6=A0=B7=E5=BC=8F=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.Bbs.Vue3/src/components/DisscussCard.vue | 26 +++++-
Yi.Bbs.Vue3/src/router/index.js | 2 +-
.../src/views/discuss/components/tabs.vue | 84 +++++++++++++++++++
.../views/{Discuss.vue => discuss/index.vue} | 45 +++++-----
4 files changed, 131 insertions(+), 26 deletions(-)
create mode 100644 Yi.Bbs.Vue3/src/views/discuss/components/tabs.vue
rename Yi.Bbs.Vue3/src/views/{Discuss.vue => discuss/index.vue} (88%)
diff --git a/Yi.Bbs.Vue3/src/components/DisscussCard.vue b/Yi.Bbs.Vue3/src/components/DisscussCard.vue
index 33b2b534..2410c510 100644
--- a/Yi.Bbs.Vue3/src/components/DisscussCard.vue
+++ b/Yi.Bbs.Vue3/src/components/DisscussCard.vue
@@ -1,5 +1,5 @@
-