|
@@ -1,4 +1,3 @@
|
|
|
-import { isOemByEnum, OemType } from '@/common/config/projectName';
|
|
|
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
|
import APP from '@/services';
|
|
import APP from '@/services';
|
|
|
import { isAllEnum } from '@/services/bus/allEnum';
|
|
import { isAllEnum } from '@/services/bus/allEnum';
|
|
@@ -7,7 +6,7 @@ import { checkTokenAction, handleTokenCheck } from '@/services/bus/token';
|
|
|
import { getAllEnums, GetPCMenus, getServerTime, queryErrorInfos, QueryTableDefine } from '@/services/go/commonService/index';
|
|
import { getAllEnums, GetPCMenus, getServerTime, queryErrorInfos, QueryTableDefine } from '@/services/go/commonService/index';
|
|
|
import { getAppConfig, getCommonApiUrl } from '@/services/go/config';
|
|
import { getAppConfig, getCommonApiUrl } from '@/services/go/config';
|
|
|
import { LoginQuery } from '@/services/go/useInfo/index';
|
|
import { LoginQuery } from '@/services/go/useInfo/index';
|
|
|
-import { serviceURL, setServiceURL } from '@/services/request/serviceURL';
|
|
|
|
|
|
|
+import { setServiceURL } from '@/services/request/serviceURL';
|
|
|
import ProtobufCtr from '@/services/socket/protobuf/index';
|
|
import ProtobufCtr from '@/services/socket/protobuf/index';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { queryMarketRun, QueryMarketsByLoginID } from '../go/commonMarket';
|
|
import { queryMarketRun, QueryMarketsByLoginID } from '../go/commonMarket';
|
|
@@ -63,37 +62,6 @@ export async function globalDataRefresh(): Promise<string> {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function getIco(): string {
|
|
|
|
|
- let result = 'favicon'
|
|
|
|
|
- if (isOemByEnum(OemType.manager)) {
|
|
|
|
|
- result = 'favicon'
|
|
|
|
|
- } else if (isOemByEnum(OemType.wrspot)) {
|
|
|
|
|
- result = 'yunrong'
|
|
|
|
|
- } else if (isOemByEnum(OemType.qinghaijin)) {
|
|
|
|
|
- result = 'qianhaijin'
|
|
|
|
|
- } else if (isOemByEnum(OemType.tian_jing_mai_dun)) {
|
|
|
|
|
- result = 'yunrong'
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- return `./${result}.ico`
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-function setIcon() {
|
|
|
|
|
- const link: any = document.querySelector("link[rel*='icon']") || document.createElement('link');
|
|
|
|
|
- const obj = {
|
|
|
|
|
- type: 'image/x-icon',
|
|
|
|
|
- rel: 'shortcut icon',
|
|
|
|
|
- href: getIco(),
|
|
|
|
|
- }
|
|
|
|
|
- Object.assign(link, obj)
|
|
|
|
|
- document.title = 'WebPC'
|
|
|
|
|
- if (serviceURL.oem === 'yrdz') {
|
|
|
|
|
- document.title = '云融'
|
|
|
|
|
- }
|
|
|
|
|
- document.getElementsByTagName('head')[0].appendChild(link);
|
|
|
|
|
-}
|
|
|
|
|
/**
|
|
/**
|
|
|
* 全局依赖的数据查询,涉及各个方面
|
|
* 全局依赖的数据查询,涉及各个方面
|
|
|
*/
|
|
*/
|
|
@@ -106,7 +74,6 @@ async function queryDependencies(): Promise<number> {
|
|
|
const apiUrl = await getCommonApiUrl(config.data.apiUrl);
|
|
const apiUrl = await getCommonApiUrl(config.data.apiUrl);
|
|
|
|
|
|
|
|
if (apiUrl.data.code === 200) setServiceURL(apiUrl.data.data);
|
|
if (apiUrl.data.code === 200) setServiceURL(apiUrl.data.data);
|
|
|
- setIcon()
|
|
|
|
|
// await APP.connectQuote();
|
|
// await APP.connectQuote();
|
|
|
/** 数据返回 */
|
|
/** 数据返回 */
|
|
|
return Promise.resolve(1);
|
|
return Promise.resolve(1);
|