Browse Source

翻译文本变更

master
La123123 4 weeks ago
parent
commit
6971a8aac4
  1. 6
      im-platform/src/main/resources/application.yml
  2. 2
      im-server/src/main/resources/application.yml
  3. 4
      im-web/src/components/chat/ChatBox.vue

6
im-platform/src/main/resources/application.yml

@ -1,5 +1,5 @@
server: server:
port: 8889 port: 8881
spring: spring:
profiles: profiles:
active: dev # 环境 dev|test|prod active: dev # 环境 dev|test|prod
@ -24,9 +24,9 @@ mybatis-plus:
jwt: jwt:
accessToken: accessToken:
expireIn: 1800 #半个小时 expireIn: 1800 #半个小时
secret: MIIBIjANBgkq secret: MIIBIjANBgkqpy123
refreshToken: refreshToken:
expireIn: 604800 #7天 expireIn: 604800 #7天
secret: IKDiqVmn0VFU secret: IKDiqVmn0VFUpy123

2
im-server/src/main/resources/application.yml

@ -14,4 +14,4 @@ tcpsocket:
jwt: jwt:
accessToken: accessToken:
secret: MIIBIjANBgkq # 跟im-platfrom的secret必须一致 secret: MIIBIjANBgkqpy123 # 跟im-platfrom的secret必须一致

4
im-web/src/components/chat/ChatBox.vue

@ -768,7 +768,7 @@ export default {
let message = this.chatStore.findMessage(chat, msgInfo); let message = this.chatStore.findMessage(chat, msgInfo);
if (message) { if (message) {
// content // content
message.content = res; message.content = "原文本:" + message.content + "\n" + "翻译结果:" + res;
// //
chat.stored = false; chat.stored = false;
this.chatStore.saveToStorage(); this.chatStore.saveToStorage();
@ -1347,7 +1347,7 @@ export default {
if (res) { if (res) {
// //
chatInput.setTextContent(res); chatInput.setTextContent(res);
this.$message.success("翻译成功"); this.$message.success("翻译成功111");
} else { } else {
this.$message.error(res); this.$message.error(res);
} }

Loading…
Cancel
Save