去除提下线走退出接口

This commit is contained in:
龙运模 2024-09-21 13:24:29 +08:00
parent 3fcd88da5c
commit 9c575ee296

View File

@ -2,10 +2,10 @@
import tool from '@/utils/tool'; import tool from '@/utils/tool';
import systemConfig from '@/config'; import systemConfig from '@/config';
import api from '../api';
import router from "@/router"; import router from "@/router";
import {ElNotification} from 'element-plus'; import {ElNotification} from 'element-plus';
import {eventBus} from "./eventBus" import {eventBus} from "./eventBus"
// import api from '../api';
// import store from "../store"; // import store from "../store";
let websocket = null; let websocket = null;
@ -165,7 +165,7 @@ function webSocketOnMessage(msg) {
} }
function handleError() { function handleError() {
api.system.user.logout.post().then(); // api.system.user.logout.post().then();
router.replace({ path: "/login" }).then(); router.replace({ path: "/login" }).then();
closeSock(true); closeSock(true);
} }