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); }