Showing
2 changed files
with
3 additions
and
2 deletions
| ... | ... | @@ -78,7 +78,7 @@ export const formSchemas: FormSchema[] = [ |
| 78 | 78 | const result = await getDevicesByDeviceIds(data!); |
| 79 | 79 | return result.data.map((item) => ({ |
| 80 | 80 | label: item.alias || item.name, |
| 81 | - value: 'tbDeviceId', | |
| 81 | + value: item.tbDeviceId, | |
| 82 | 82 | })); |
| 83 | 83 | } else { |
| 84 | 84 | const result = await getMeetTheConditionsDevice({ |
| ... | ... | @@ -87,7 +87,7 @@ export const formSchemas: FormSchema[] = [ |
| 87 | 87 | }); |
| 88 | 88 | return result.map((item) => ({ |
| 89 | 89 | label: item.alias || item.name, |
| 90 | - value: 'tbDeviceId', | |
| 90 | + value: item.tbDeviceId, | |
| 91 | 91 | })); |
| 92 | 92 | } |
| 93 | 93 | } catch (error) { | ... | ... |