From 6971a8aac48bdabff1d0fa81f2ccc5eb20fd1bba Mon Sep 17 00:00:00 2001 From: La123123 <617330105@qq.com> Date: Tue, 21 Apr 2026 17:41:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E6=96=87=E6=9C=AC=E5=8F=98?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-platform/src/main/resources/application.yml | 6 +++--- im-server/src/main/resources/application.yml | 2 +- im-web/src/components/chat/ChatBox.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/im-platform/src/main/resources/application.yml b/im-platform/src/main/resources/application.yml index 232ebe6..32a8776 100644 --- a/im-platform/src/main/resources/application.yml +++ b/im-platform/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 8889 + port: 8881 spring: profiles: active: dev # 环境 dev|test|prod @@ -24,9 +24,9 @@ mybatis-plus: jwt: accessToken: expireIn: 1800 #半个小时 - secret: MIIBIjANBgkq + secret: MIIBIjANBgkqpy123 refreshToken: expireIn: 604800 #7天 - secret: IKDiqVmn0VFU + secret: IKDiqVmn0VFUpy123 diff --git a/im-server/src/main/resources/application.yml b/im-server/src/main/resources/application.yml index 9b47335..91e1331 100644 --- a/im-server/src/main/resources/application.yml +++ b/im-server/src/main/resources/application.yml @@ -14,4 +14,4 @@ tcpsocket: jwt: accessToken: - secret: MIIBIjANBgkq # 跟im-platfrom的secret必须一致 + secret: MIIBIjANBgkqpy123 # 跟im-platfrom的secret必须一致 diff --git a/im-web/src/components/chat/ChatBox.vue b/im-web/src/components/chat/ChatBox.vue index 87d96e2..02a1f2f 100644 --- a/im-web/src/components/chat/ChatBox.vue +++ b/im-web/src/components/chat/ChatBox.vue @@ -768,7 +768,7 @@ export default { let message = this.chatStore.findMessage(chat, msgInfo); if (message) { // 直接更新消息对象的content属性 - message.content = res; + message.content = "原文本:" + message.content + "\n" + "翻译结果:" + res; // 标记需要保存 chat.stored = false; this.chatStore.saveToStorage(); @@ -1347,7 +1347,7 @@ export default { if (res) { // 将翻译结果替换到输入框中 chatInput.setTextContent(res); - this.$message.success("翻译成功"); + this.$message.success("翻译成功111"); } else { this.$message.error(res); }