fix: 修复在线问题

This commit is contained in:
橙子
2024-01-15 00:25:25 +08:00
parent cf793c198f
commit e64b12097a
6 changed files with 52 additions and 23 deletions

View File

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