去除提下线走退出接口
This commit is contained in:
parent
3fcd88da5c
commit
9c575ee296
@ -2,10 +2,10 @@
|
||||
|
||||
import tool from '@/utils/tool';
|
||||
import systemConfig from '@/config';
|
||||
import api from '../api';
|
||||
import router from "@/router";
|
||||
import {ElNotification} from 'element-plus';
|
||||
import {eventBus} from "./eventBus"
|
||||
// import api from '../api';
|
||||
// import store from "../store";
|
||||
|
||||
let websocket = null;
|
||||
@ -165,7 +165,7 @@ function webSocketOnMessage(msg) {
|
||||
}
|
||||
|
||||
function handleError() {
|
||||
api.system.user.logout.post().then();
|
||||
// api.system.user.logout.post().then();
|
||||
router.replace({ path: "/login" }).then();
|
||||
closeSock(true);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user