我正在尝试从数据服务加载数据,但 ID 显示为类型错误
selectedModule(item: any) {
this.module = item;
console.log(this.module);
this.dataService.getAny('/modules/get-by-module', "Id", '1')
.then((module: IModuleBySector) => {
const cust = JSON.stringify(module);
this.moduleSelected = module;
console.log(this.moduleSelected);
});
}