From 277a751ed44cd2ab221ad28967d55494eeeded16 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 9 Mar 2025 18:40:03 +0800 Subject: [PATCH] no message --- .../manage/components/ChatInput/index.vue | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index 00e9d66a1..026534395 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -208,7 +208,7 @@
-
+
@@ -389,9 +389,10 @@ export default { recordConvertIng: false, recordConvertFocus: false, - recordConvertStatus: 0, // 0: 转换中 1: 转换成功 2: 转换失败 - recordConvertResult: '', - recordConvertTranslate: '', // 转换之后翻译语言 + recordConvertSetting: false, // 是否显示转换设置 + recordConvertStatus: 0, // 0: 转换中, 1: 转换成功, 2: 转换失败 + recordConvertResult: '', // 转换结果 + recordConvertTranslate: '', // 转换结果翻译语言 touchStart: {}, touchFocus: false, @@ -853,6 +854,8 @@ export default { recordConvertIng(show) { if (show) { this.recordIndex = ++window.modalTransferIndex + } else { + this.recordConvertSetting = false } }, @@ -1440,8 +1443,14 @@ export default { }, method: 'post', }).then(({data}) => { - this.recordConvertStatus = data ? 1 : 2 - this.recordConvertResult = data || this.$L('转文字失败') + if (data) { + this.recordConvertStatus = 1 + this.recordConvertResult = data + this.recordConvertSetting = true + } else { + this.recordConvertStatus = 2 + this.recordConvertResult = this.$L('转文字失败') + } }).catch(({msg}) => { this.recordConvertStatus = 2 this.recordConvertResult = msg @@ -1452,7 +1461,7 @@ export default { async convertSetting(type, event) { if (this.recordConvertStatus !== 1) { - $A.messageWarning("正在识别中,请稍后") + $A.messageWarning("请稍后再试...") return; } await this.$nextTick()