文件服务下载修改

This commit is contained in:
zhujiyan
2024-10-25 16:03:44 +08:00
parent 63937a0742
commit 21af539824
4 changed files with 127 additions and 56 deletions

View File

@@ -24,6 +24,20 @@ export function downLoadDeviceFile(data) {
})
}
//获取下载文件的文件路径地址
export function downLoadDeviceFilePath(obj) {
let form = new FormData()
form.append('name', obj.name)
form.append('nDid', obj.nDid)
return createAxios({
url: `/cs-device-boot/deviceFile/getDownloadFilePath`,
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}
//装置重启
export function reStartDevice(data) {
return createAxios({