fix: bug
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user