I'm using vue and typescript and I meet a problem, how to fix it? Here is my code:
private setTitle(systemConfig: any) {
const systemConfigParse;
let obj;
systemConfigParse = JSON.parse(systemConfig);
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "hospitalName";
});
this.hospitalName = obj.Value;
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "systemName";
});
this.systemName = obj.Value;
this.title = this.hospitalName + this.systemName;
}
The error is at this row return item.Code == "hospitalName";
But after I deleting the code:
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "hospitalName";
});
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "systemName";
});
It still has error Is it the trick made by eslint? How to fix it? Thank you very much