Sign in

guzijian / wvp-GB28181-pro · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • wvp-GB28181-pro
  • web_src
  • src
  • api
  • deviceApi.js
  • 新增实时监控功能 ...
    37a84e66
    左边是设备通道树,右边是分屏预览
    朱俊杰 authored
    2022-02-10 14:45:33 +0800  
    Browse Code »
deviceApi.js 322 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import axios from 'axios';

export const tree = (deviceId) => {
  return axios({
    url: `/api/device/query/${deviceId}/tree`,
    method: 'get'
  })
}

export const deviceList = (page, count) => {
  return axios({
    method: 'get',
    url:`/api/device/query/devices`,
    params: {
      page,
      count
    }
  })
}