|
|
@@ -4,6 +4,7 @@ import { setAllEnum } from '@/services/bus/allEnum';
|
|
|
import { geLoginID_number } from '@/services/bus/login';
|
|
|
import { localStorageUtil } from '@/utils/storage';
|
|
|
import moment from 'moment';
|
|
|
+import { OperationTabMenu } from '@/services/go/commonService/interface';
|
|
|
import { commonSearch_go } from '../index';
|
|
|
import * as type from './interface';
|
|
|
|
|
|
@@ -100,7 +101,22 @@ export function GetPCMenus(): Promise<string> {
|
|
|
};
|
|
|
Object.assign(param, obj)
|
|
|
return commonSearch_go('/Common/GetClientMenus', param)
|
|
|
- .then((res) => {
|
|
|
+ .then((res: OperationTabMenu[]) => {
|
|
|
+ const first = res.find((e) => e.code === 'market');
|
|
|
+ const second = first?.children.find((e) => e.code === 'spot_trade');
|
|
|
+
|
|
|
+ second?.children.push({
|
|
|
+ code: 'spot_trade_advertisement',
|
|
|
+ isshow: true,
|
|
|
+ rulekey: 'spot_trade_advertisement',
|
|
|
+ sort: 0,
|
|
|
+ title: '融资融货',
|
|
|
+ type: 1,
|
|
|
+ url: '',
|
|
|
+ remark: '',
|
|
|
+ children: []
|
|
|
+ })
|
|
|
+
|
|
|
APP.set('menus', res);
|
|
|
console.log('交易端菜单', res);
|
|
|
return 'ok';
|