export const getCameraList = params => request.post('/api/fms/video/list', params)
const getDeviceList = () => {
return new Promise((resolve, reject) => {
getCameraList().then(res => {
resolve({
data: {
firstPage: true,
lastPage: false,
pageNumber: 1,
pageSize: 1,
pages: 1,
totalCount: 1,
records: res.data
}
})
})
})
}
文章来源地址https://www.toymoban.com/news/detail-794738.html
文章来源:https://www.toymoban.com/news/detail-794738.html
到了这里,关于js异步请求接口\模拟异步封装的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!