语音提交

This commit is contained in:
fengerli
2026-04-01 15:05:18 +08:00
parent 0c54f550b9
commit d2c2e42d06

View File

@ -392,7 +392,7 @@
let data = { let data = {
fileName: this.cEdit.fileNameExt, fileName: this.cEdit.fileNameExt,
deviceId: this.device.deviceId, deviceId: this.device.deviceId,
fileId: item.fileId id: item.id
} }
videRenameAudioFile(data).then((res) => { videRenameAudioFile(data).then((res) => {
console.log('res'); console.log('res');
@ -440,8 +440,8 @@
} }
let task = () => { let task = () => {
const devId = this.device.deviceId; const devId = this.device.deviceId;
const vid = (item.id != null && item.id !== '') ? item.id : item.fileId; const vid = (item.id != null && item.id !== '') ? item.id : item.id;
deviceDeleteAudioFile({ fileId: item.fileId, deviceId: devId }).then((res) => { deviceDeleteAudioFile({ id: item.id, deviceId: devId }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
if (devId && vid != null && vid !== '') remove100JVoiceBleCache(devId, vid); if (devId && vid != null && vid !== '') remove100JVoiceBleCache(devId, vid);
uni.showToast({ title: res.msg, icon: 'none', duration: 1000 }); uni.showToast({ title: res.msg, icon: 'none', duration: 1000 });
@ -528,7 +528,7 @@
? (raw.startsWith('/') ? (baseURL + raw) : raw) ? (raw.startsWith('/') ? (baseURL + raw) : raw)
: ''; : '';
const data = { const data = {
id: (item.id != null && item.id !== '') ? item.id : item.fileId, id: item.id,
fileUrl, fileUrl,
localPath: '', localPath: '',
onProgress: (p) => { onProgress: (p) => {