解决方案:给obj加上一个ts的类型声明
const metadataMap: {
[key: string]: any
} = {
originInfo: {
text: {
label: '基础信息',
type: 'string',
},
}
参考:https://blog.csdn.net/qq_17335549/article/details/128430846
解决方案:给obj加上一个ts的类型声明
const metadataMap: {
[key: string]: any
} = {
originInfo: {
text: {
label: '基础信息',
type: 'string',
},
}
参考:https://blog.csdn.net/qq_17335549/article/details/128430846