Commit 7589c3d2 by Sxy

fix: 为空时返回空数组

parent ccc92310
......@@ -112,7 +112,7 @@ class ProductpriceService extends ServiceBase {
return item.area.indexOf(region) >= 0
})
}
return result
return result || []
}
async updownProduct(uid) {
let p = await this.dao.findById(uid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment