feat: 重构signalr,在线人数允许不用登录

This commit is contained in:
陈淳
2024-03-11 17:07:43 +08:00
parent 8857fb24f0
commit 4bb93a947e
8 changed files with 106 additions and 244 deletions

View File

@@ -86,7 +86,6 @@ 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 { isLogin, clearStorage } = useAuths();
const configStore = useConfigStore();
@@ -106,7 +105,6 @@ const logout = async () => {
}).then(async () => {
//异步
await userStore.logOut();
await signalR.close();
//删除成功后,跳转到主页
router.push("/login");
ElMessage({