fix: 调整语言的中英文变量
This commit is contained in:
@@ -1792,6 +1792,8 @@ export const langData = [
|
||||
{ value: 'zh', label: 'zh' },
|
||||
{ value: 'en', label: 'en' }
|
||||
]
|
||||
export const ZH = 'zh'
|
||||
export const EN = 'en'
|
||||
|
||||
export const performanceMetricMapping = {
|
||||
'dns error': 'DNS Error Rate',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ElMessageBox, ElMessage } from 'element-plus'
|
||||
import i18n from '@/i18n'
|
||||
import _ from 'lodash'
|
||||
import { storageKey, iso36112, topDomain, echartsFontSize, dbGeoDataTableName, networkTable, dbDrilldownTableConfig } from '@/utils/constants'
|
||||
import { storageKey, iso36112, topDomain, echartsFontSize, dbGeoDataTableName, networkTable, dbDrilldownTableConfig, ZH, EN } from '@/utils/constants'
|
||||
import { getIso36112JsonData, getDictList } from '@/utils/api'
|
||||
import { format } from 'echarts'
|
||||
import router from '@/router'
|
||||
@@ -1248,10 +1248,10 @@ export function getQueryByFlag2 (type, condition) {
|
||||
*/
|
||||
export function getWidthByLanguage (language) {
|
||||
switch (language) {
|
||||
case 'en': {
|
||||
case EN: {
|
||||
return 7
|
||||
}
|
||||
case 'cn': {
|
||||
case ZH: {
|
||||
return 16
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user