This commit is contained in:
yanghang
2025-07-22 16:31:59 +08:00
parent 128babf07f
commit e093df6f25
2 changed files with 10 additions and 8 deletions
+7 -5
View File
@@ -106,11 +106,13 @@ const initRecord = () => {
showTalkingModel.value = false
if(!isOut.value){
if(startFlag.value !== 2){
common.msg('说话时间太短,没有听清!')
showTalkingModel.value = false
return
nextTick(() => {
common.msg('说话时间太短,没有听清!')
})
}else{
emit('uploadVoice', audioPath.value)
}
emit('uploadVoice', audioPath.value)
}
})
unref(recordObjCom).onStart(() => {
@@ -133,8 +135,8 @@ const startRecord = () => {
const stopRecord = () => {
if(unref(recordObjCom).stop){
try{
unref(recordObjCom)?.stop()
}catch{
unref(recordObjCom).stop()
}finally{
showTalkingModel.value = false
}
}else{
+3 -3
View File
@@ -522,8 +522,8 @@
position: absolute;
overflow: hidden;
left: 0;
top: 1%;
height: 102%;
top: 0%;
height: 100%;
width: 100%;
padding: 0;
box-sizing: border-box;
@@ -716,7 +716,7 @@
}
.talking-list {
height: calc(100% - 834rpx);
height: calc(100% - 832rpx);
padding: 12rpx 24rpx;
box-sizing: border-box;