fix: ai问答文本限制长度100

This commit is contained in:
yanghang
2025-07-24 09:16:23 +08:00
parent ae7f52f20e
commit dfb3f99f5c
4 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -436,13 +436,13 @@ const audioCacheObj = computed(() => storageStore.audioObj)
if(talkVoiceObj.value.duration){
voiceTime.value = ( Math.ceil(talkVoiceObj.value.duration) || 0 ) + 's'
}else{
if(sum === 5) {
if(sum === 10) {
voiceTime.value = 0 + 's'
return
}
setTimeout(()=>{
setVoiceTime(sum)
},100)
},200)
}
}
const playQnsVoice = (readType = 'qns', item) =>{
+5 -1
View File
@@ -9,7 +9,7 @@
>按住说话
</view>
<view class="touch-btn" v-if="keyboardIsShow">
<uv-input class="input-box" ref="inputRef" v-model="answerValue" maxlength="500"
<uv-input class="input-box" ref="inputRef" v-model="answerValue" :maxlength="props.textValueLength"
placeholderStyle='color:#999999;font-size:26rpx' placeholder="请输入文字">
</uv-input>
</view>
@@ -72,6 +72,10 @@ const props = defineProps({
default: '当前状态不能发送内容!',
type: String
},
textValueLength:{
type: Number,
default: 500
}
})
const { isDisabled, onlyVoice } = toRefs(props)
const isLoadingState = computed(() => props.isLoading)