Showing
1 changed file
with
11 additions
and
3 deletions
1 | -//获取设备分页API | ||
2 | -const getDeviceApi = (params = {}) => { | ||
3 | - return uni.$u.http.get('/yt/device', params); | 1 | +//获取设备分页API 修改为post |
2 | +/** | ||
3 | + * params ((page,pageSize)) | ||
4 | + * data ((deviceProfileIds)) | ||
5 | + */ | ||
6 | +const getDeviceApi = (urlParams, data) => { | ||
7 | + const { | ||
8 | + page, | ||
9 | + pageSize, | ||
10 | + } = urlParams | ||
11 | + return uni.$u.http.post(`/yt/device?page=${page}&pageSize=${pageSize}`, data); | ||
4 | }; | 12 | }; |
5 | 13 | ||
6 | export default { | 14 | export default { |