diff --git a/change/@acedatacloud-nexior-c2022cd6-f9a2-46de-bd65-6621755b198f.json b/change/@acedatacloud-nexior-c2022cd6-f9a2-46de-bd65-6621755b198f.json new file mode 100644 index 00000000..e450974e --- /dev/null +++ b/change/@acedatacloud-nexior-c2022cd6-f9a2-46de-bd65-6621755b198f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix edit message", + "packageName": "@acedatacloud/nexior", + "email": "office@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/components/chat/Message.vue b/src/components/chat/Message.vue index 50210d71..cc6f8f16 100644 --- a/src/components/chat/Message.vue +++ b/src/components/chat/Message.vue @@ -48,13 +48,12 @@ @keydown.enter.exact.prevent="sendEdit" >
- 取消 - 发送 + {{ $t('common.button.cancel') }} + {{ $t('common.button.confirm') }}
-
@@ -270,6 +269,7 @@ export default defineComponent({ // background-color: var(--el-bg-color-page); // color: var(--el-text-color-primary); padding: 10px; + min-width: 400px; width: 100%; height: 100%; .chat-input { @@ -282,23 +282,6 @@ export default defineComponent({ position: absolute; bottom: 10px; right: 10px; - .cancel-button { - // background-color: #333; - // color: white; - background-color: var(--el-bg-color-page); - color: var(--el-text-color-primary); - border-radius: 20px; - // border: none; - } - - .send-button { - // background-color: white; - // color: black; - background-color: var(--el-bg-color-page); - color: var(--el-text-color-primary); - border-radius: 20px; - // border: none; - } } } } diff --git a/src/pages/chat/Conversation.vue b/src/pages/chat/Conversation.vue index 39568af2..c549c19f 100644 --- a/src/pages/chat/Conversation.vue +++ b/src/pages/chat/Conversation.vue @@ -196,6 +196,7 @@ export default defineComponent({ id: conversationId, messages: this.messages }); + console.debug('finished update conversation', this.messages); // 3. Send edited questions this.messages.push({ @@ -282,6 +283,7 @@ export default defineComponent({ }, // Get answers to questions async onFetchAnswer() { + console.debug('start to get answer', this.messages); const token = this.credential?.token; const question = this.question; const references = this.references;