|
|
@@ -1,3 +1,4 @@
|
|
|
+import { getOem, isOemByEnum, OemType } from '@/common/config/projectName';
|
|
|
import APP from '@/services';
|
|
|
import { setAllEnum } from '@/services/bus/allEnum';
|
|
|
import { getLongTypeLoginID } from '@/services/bus/login';
|
|
|
@@ -91,11 +92,13 @@ export function queryNotice(): Promise<type.QueryNoticeRsp[]> {
|
|
|
* 获取PC交易端菜单
|
|
|
*/
|
|
|
export function GetPCMenus(): Promise<string> {
|
|
|
+ // 目前只有平安期货需要 oem 这个参数 请求菜单数据,如后续添加需要根据name获取菜单,此处需要修改
|
|
|
+ const obj = isOemByEnum(OemType.pingan) ? { name: getOem() } : {}
|
|
|
const param = {
|
|
|
loginID: Number(getLongTypeLoginID()),
|
|
|
clientType: 0, // 终端类型,0:PC 1:Mobile
|
|
|
- // name: getOem(),
|
|
|
};
|
|
|
+ Object.assign(param, obj)
|
|
|
return commonSearch_go('/Common/GetClientMenus', param)
|
|
|
.then((res) => {
|
|
|
APP.set('menus', res);
|