File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- import { toNumber } from 'lodash-es'
1
+ import { toNumber } from 'lodash-es'
2
2
3
3
/**
4
4
*
@@ -459,7 +459,7 @@ export function jsonParse(str: string) {
459
459
try {
460
460
return JSON . parse ( str )
461
461
} catch ( e ) {
462
- // console.error (`str[${str}] 不是一个 JSON 字符串`)
462
+ console . log ( `str[${ str } ] 不是一个 JSON 字符串` )
463
463
return ''
464
464
}
465
465
}
Original file line number Diff line number Diff line change 1
- import { isEmpty } from '@/utils/is'
1
+ import { isEmpty } from '@/utils/is'
2
2
3
3
/** dataSpecs 数值型数据结构 */
4
4
export interface DataSpecsNumberDataVO {
@@ -21,7 +21,6 @@ export interface DataSpecsEnumOrBoolDataVO {
21
21
}
22
22
23
23
/** 属性值的数据类型 */
24
- // TODO @puhui 999:这个枚举类,要不放到 dict 里? 这个全是当常量来使用的不好放 dict 里 🤣
25
24
export const DataSpecsDataType = {
26
25
INT : 'int' ,
27
26
FLOAT : 'float' ,
@@ -35,7 +34,6 @@ export const DataSpecsDataType = {
35
34
} as const
36
35
37
36
/** 物体模型数据类型配置项 */
38
- // TODO @puhui 999:搞到字典里;label 只使用()部分,就是整数型、单精度浮点型等,这种哈。这样,拼接 value(label) 就可以渲染出来,通用性更强
39
37
export const dataTypeOptions = [
40
38
{ value : DataSpecsDataType . INT , label : '整数型' } ,
41
39
{ value : DataSpecsDataType . FLOAT , label : '单精度浮点型' } ,
You can’t perform that action at this time.
0 commit comments