|
@@ -13,12 +13,14 @@ import { logoutResponse } from '../socket/login';
|
|
|
import { loginAction } from '../socket/login/index';
|
|
import { loginAction } from '../socket/login/index';
|
|
|
import { LoginResponse } from '../socket/login/interface/index';
|
|
import { LoginResponse } from '../socket/login/interface/index';
|
|
|
import { getMarketByTradeMode } from './market';
|
|
import { getMarketByTradeMode } from './market';
|
|
|
-
|
|
|
|
|
|
|
+import Router from '@/router';
|
|
|
|
|
|
|
|
export const logout = (): void => {
|
|
export const logout = (): void => {
|
|
|
- // removeLoginData();
|
|
|
|
|
- sessionStorageUtil.removeItem('transaction_swap')
|
|
|
|
|
logoutResponse();
|
|
logoutResponse();
|
|
|
|
|
+ removeLoginData();
|
|
|
|
|
+ APP.closeServer();
|
|
|
|
|
+ APP.closeQuote();
|
|
|
|
|
+ Router.replace('/login');
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export const login = async (logidCode: string, password: string, byteArr: Uint8Array[], isEncryt = false): Promise<LoginResponse> => {
|
|
export const login = async (logidCode: string, password: string, byteArr: Uint8Array[], isEncryt = false): Promise<LoginResponse> => {
|