Cannot read property 'value' of null Occurred while linting?

 Cannot read property 'value' of null Occurred while linting?

 getDefaultFactoryCode = () => {

Utils.request({

url: `${window.API_HOST}/common/queryCodeDesc`,

method: 'get',

data: {

classType: 'GC',

entity: 'MRC',

},

})

.then(res => {

if (res.flag === 'S' && res.data !== null) {

if (res && res.data && res.data.length) {

this.defaultFactoryCode = res.data[0].code;

}

}

})

.catch((res) => {

message.error(res.message);

});

}


回答:

就是字面意思,无法在null上获取value属性,这里没看出你哪里使用了,检查下你的数据,有没有哪个被赋值了null

以上是 Cannot read property 'value' of null Occurred while linting? 的全部内容, 来源链接: utcz.com/p/937334.html

回到顶部