feat: panel初始化,api提取
This commit is contained in:
@@ -3,9 +3,18 @@ export const defaultPageSize = 20
|
||||
// 统一定义跳转来源
|
||||
export const fromRoute = {
|
||||
trafficSummary: 'trafficSummary',
|
||||
networkAppPerformance: 'networkAppPerformance',
|
||||
dnsServiceInsights: 'dnsServiceInsights',
|
||||
user: 'user'
|
||||
}
|
||||
|
||||
/* panel类别和路由之间的映射 */
|
||||
export const panelTypeAndRouteMapping = {
|
||||
trafficSummary: 1,
|
||||
networkAppPerformance: 2,
|
||||
dnsServiceInsights: 3
|
||||
}
|
||||
|
||||
export const position = {
|
||||
tableHeight: {
|
||||
normal: 'calc(100% - 48px)' // 常规高度,特例在下方定义
|
||||
|
||||
Reference in New Issue
Block a user