Commit 803d711b authored by 拾柒's avatar 拾柒

修改开发环境以及增加接口

parent 9aa070f4
......@@ -5,7 +5,7 @@ VUE_APP_TITLE = 悦优享视频监控管理系统
ENV = 'development'
# 悦优享视频监控管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = ''
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
......@@ -7,3 +7,34 @@ export function getCameras(query) {
params: query
})
}
// 获取accessToken
export function getAccessToken() {
return request({
url: '/hikvision/getAccessToken',
method: 'get',
})
}
// 获取萤石云的设备信息
export function getDeviceList(query) {
return request({
url: '/hikvision/getYsCameras',
method: 'get',
params: {
accessToken: query
}
})
}
// 根据设备信息以及token获取设备视频流
export function getStream(deviceSerial,accessToken) {
return request({
url: '/hikvision/getYsPlayerStream',
method: 'get',
params: {
deviceSerial: deviceSerial
, accessToken: accessToken
}
})
}
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