This commit is contained in:
parent
dbd56a2cea
commit
494da0ad79
|
|
@ -494,12 +494,13 @@ const handleChangeAudio = async (e) => {
|
||||||
selectPlayType.value = true
|
selectPlayType.value = true
|
||||||
} else if (e === '删除') {
|
} else if (e === '删除') {
|
||||||
const { data: res } = await deleteAudioApi({
|
const { data: res } = await deleteAudioApi({
|
||||||
puId: robotData.robotInfo?.puId,
|
puid: robotData.robotInfo?.puId,
|
||||||
id: audioInfo.value?.id,
|
id: audioInfo.value?.id,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
message.success('删除音频成功')
|
message.success('删除音频成功')
|
||||||
|
getAudioInfo()
|
||||||
} else {
|
} else {
|
||||||
message.error('删除音频失败')
|
message.error('删除音频失败')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -494,7 +494,7 @@ const handleChangeAudio = async (e) => {
|
||||||
selectPlayType.value = true
|
selectPlayType.value = true
|
||||||
} else if (e === '删除') {
|
} else if (e === '删除') {
|
||||||
const { data: res } = await deleteAudioApi({
|
const { data: res } = await deleteAudioApi({
|
||||||
puId: robotData.robotInfo?.puId,
|
puid: robotData.robotInfo?.puId,
|
||||||
id: audioInfo.value?.id,
|
id: audioInfo.value?.id,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue