|
|
@@ -1,6 +1,5 @@
|
|
|
import APP from '@/services';
|
|
|
import timerUtil from '@/utils/timer/timerUtil'
|
|
|
-import { TradeMode } from '@/common/constants/enumCommon';
|
|
|
import { isAllEnum } from '@/services/bus/allEnum';
|
|
|
import { checkTokenLoop } from '@/services/bus/token';
|
|
|
import { getAllEnums, GetPCMenus, getServerTime, queryErrorInfos, QueryTableDefine } from '@/services/go/commonService/index';
|
|
|
@@ -14,7 +13,6 @@ import { queryWrMarketTradeConfig } from '../go/wrtrade';
|
|
|
import { logoutResponse } from '../socket/login';
|
|
|
import { loginAction } from '../socket/login/index';
|
|
|
import { LoginResponse } from '../socket/login/interface/index';
|
|
|
-import { getMarketByTradeMode } from './market';
|
|
|
import Router from '@/router';
|
|
|
|
|
|
export const logout = (): void => {
|
|
|
@@ -35,11 +33,7 @@ export const login = async (logidCode: string, password: string, byteArr: Uint8A
|
|
|
// localstorage 缓存登录信息,处理页面刷新
|
|
|
setLoginData(loginData);
|
|
|
await LoginQuery()
|
|
|
- await Promise.all([GetErmcpGoods(), GetPCMenus(), QueryTableDefine(), getServerTime(), QueryDeliveryGoodsDetail(), getTaAccount(), queryMarketRun(), queryTjmdMarketSection()])
|
|
|
- const marketInfo = getMarketByTradeMode(TradeMode.WarehouseReceiptTrade);
|
|
|
- if (marketInfo) {
|
|
|
- await queryWrMarketTradeConfig({ marketid: marketInfo.marketid })
|
|
|
- }
|
|
|
+ await Promise.all([GetErmcpGoods(), GetPCMenus(), QueryTableDefine(), getServerTime(), QueryDeliveryGoodsDetail(), getTaAccount(), queryMarketRun(), queryTjmdMarketSection(), queryWrMarketTradeConfig()])
|
|
|
|
|
|
// await GetPCMenus();
|
|
|
// await QueryTableDefine();
|