视频-本地资源

This commit is contained in:
zhanglipeng
2021-01-29 15:34:39 +08:00
parent 4fbb01b54e
commit 611695463a
5 changed files with 28 additions and 22 deletions

View File

@ -18,15 +18,16 @@ export function downLoadZip(str, filename) {
resolveBlob(res, mimeMap.zip)
})
}
export function downLoadRequestUrl(str) {
export function downLoadVideoUrl(str) {
var url = baseUrl + str
axios({
method: 'get',
url: url,
responseType: 'blob',
responseType: 'arraybuffer',
headers: { 'Authorization': 'Bearer ' + getToken() },
}).then(res => {
// console.log(res);
res.send();
})
}
@ -39,7 +40,8 @@ export function downLoadUrl(str, item) {
headers: { 'Authorization': 'Bearer ' + getToken() },
}).then(res => {
// console.log(res);
downloadFileFun(res.data, item)
// downloadFileFun(res.data, item)
res.send();
})
}