This commit is contained in:
yanran200730
2022-06-13 14:13:30 +08:00
parent 27481f6f81
commit 4548000229

View File

@@ -149,7 +149,7 @@
methods: {
onLongtap () {
if (!this.equipmentList.length) {
// return this.$u.toast('请选择播发设备')
return this.$u.toast('请选择播发设备')
}
this.isImpact = false
@@ -242,14 +242,14 @@
let formData = {}
formData = new FormData()
formData.append('file', new window.File([blob], `${(new Date).getTime()}` ))
this.$u.toast('播发成功')
this.recordList.push({
src: (window.URL || webkitURL).createObjectURL(blob),
isPlay: false,
duration: (duration / 1000).toFixed(0)
})
this.isShowRecord = true
return
// this.$u.toast('播发成功')
// this.recordList.push({
// src: (window.URL || webkitURL).createObjectURL(blob),
// isPlay: false,
// duration: (duration / 1000).toFixed(0)
// })
// this.isShowRecord = true
// return
this.$loading()
this.$http.post(`/app/appdlbresource/uploadDlbFile`, formData).then(res => {