-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathconstants.ts
38 lines (35 loc) · 869 Bytes
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* eslint-disable @typescript-eslint/no-unused-vars */
import api from '@/assets/icon/api-file.svg';
import help from '@/assets/icon/help-center.svg';
import { textinDomain } from '@/utils/helper';
export interface IDesktopMenu {
name: string;
icon?: string;
iconOff?: string;
path?: string;
children?: IDesktopMenu[];
active?: boolean;
collapsed?: boolean;
subMenu?: IDesktopMenu[];
activeArr?: string[];
key?: string;
logKey?: string;
target?: '_blank' | '_parent' | '_self' | '_top';
}
const desktopHrefMenu: IDesktopMenu[] = [
{
name: 'API文档',
icon: api,
path: textinDomain + '/document/index',
key: 'href-0',
logKey: 'api_document',
},
{
name: '帮助中心',
icon: help,
path: textinDomain + '/doc/guide/first',
key: 'href-1',
logKey: 'help_center',
},
];
export { desktopHrefMenu };