这家伙很懒,什么也没写!

注册于 1年前

回答
2
文章
0
关注者
0

这是请求代码
export function GetDeviceList (deviceTtype) {
return request({

url: urlPrefix + 'get_device_info',
method: 'get',
params: {
  device_type: deviceTtype
}

})
}
loadData() {

  GetDeviceList(this.currentType).then((ret) => {
    console.log(ret.data.data);
    this.devices = ret.data.data;
    // this.$set(this, 'devices', ret.data)
  });

谢谢两位,目前前端已正常,但是查不到数据,以下是发出的查询请求:
http://127.0.0.1:8000/api/modbus485/yaoce_his/?update_datetime=2022-04-27&update_datetime=2022-04-27&limit=20&page=1
现在应该怎么办呢?

发布
问题