diff --git a/aiChat/components/bottomSend.vue b/aiChat/components/bottomSend.vue index 0b47eba..f8a0142 100644 --- a/aiChat/components/bottomSend.vue +++ b/aiChat/components/bottomSend.vue @@ -112,6 +112,10 @@ export default { keyboardHeight: { type: Number, default: 0 + }, + voiceException: { + type: String, + default: '没有听清您说了什么,请再说一遍' } }, data() { @@ -262,11 +266,11 @@ export default { fail: err => { console.log(err) uni.hideLoading() - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) } }) } else { - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) } }) } @@ -282,7 +286,7 @@ export default { _this.getTransResultReq() }).catch(() => { uni.hideLoading() - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) }) }, getTransResultReq() { @@ -296,7 +300,7 @@ export default { uni.hideLoading() _this.clearIntervalFn() if (data === '__NULL__') { - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) } else { if (data.length > 0) { const prompt = data[0].Text @@ -308,7 +312,7 @@ export default { } }).catch(() => { uni.hideLoading() - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) }) }, 1000) }, diff --git a/aiChat/components/historyList.vue b/aiChat/components/historyList.vue index 7635202..0594611 100644 --- a/aiChat/components/historyList.vue +++ b/aiChat/components/historyList.vue @@ -112,7 +112,9 @@