Commit ded722c4f287ab59ea442b35d88c097455433062
1 parent
80b43952
fix: 修改设备列表分页和设备分布分页,初始化传deviceProfileIds:null问题
Showing
2 changed files
with
2 additions
and
0 deletions
@@ -308,6 +308,7 @@ | @@ -308,6 +308,7 @@ | ||
308 | columns, | 308 | columns, |
309 | beforeFetch: (params) => { | 309 | beforeFetch: (params) => { |
310 | const { deviceProfileId } = params; | 310 | const { deviceProfileId } = params; |
311 | + if (!deviceProfileId) return; | ||
311 | const obj = { | 312 | const obj = { |
312 | ...params, | 313 | ...params, |
313 | ...{ | 314 | ...{ |
@@ -260,6 +260,7 @@ | @@ -260,6 +260,7 @@ | ||
260 | }, | 260 | }, |
261 | beforeFetch: (params) => { | 261 | beforeFetch: (params) => { |
262 | const { deviceProfileId } = params; | 262 | const { deviceProfileId } = params; |
263 | + if (!deviceProfileId) return; | ||
263 | const deviceProfileIds = [deviceProfileId]; | 264 | const deviceProfileIds = [deviceProfileId]; |
264 | const obj = { | 265 | const obj = { |
265 | ...params, | 266 | ...params, |