From 21c664362279747a7eb5509792c98cc67b59cb2c Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 23 Aug 2024 09:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=8A=A9=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/biaopin/AppDialogue/Detail.vue | 8 +++++--- src/project/biaopin/AppDialogue/Record.vue | 2 +- src/project/biaopin/AppDialogue/Talk.vue | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/project/biaopin/AppDialogue/Detail.vue b/src/project/biaopin/AppDialogue/Detail.vue index 99ba1b2a..bc3ce355 100644 --- a/src/project/biaopin/AppDialogue/Detail.vue +++ b/src/project/biaopin/AppDialogue/Detail.vue @@ -14,7 +14,7 @@ -->
-

已切换至{{messageList[0].aiConfigName}}

+

已切换至{{aiConfigName}}

@@ -28,7 +28,7 @@
- 8” +
@@ -67,7 +67,8 @@ export default { current: 1, pages: 2, aiConfigId: '', - conversationId: '' + conversationId: '', + aiConfigName: '' } }, computed: { @@ -76,6 +77,7 @@ export default { onLoad(e) { this.aiConfigId = e.aiConfigId this.conversationId = e.conversationId + this.aiConfigName = e.aiConfigName this.getHistoryList() }, onShow() { diff --git a/src/project/biaopin/AppDialogue/Record.vue b/src/project/biaopin/AppDialogue/Record.vue index 7497602d..cee4167c 100644 --- a/src/project/biaopin/AppDialogue/Record.vue +++ b/src/project/biaopin/AppDialogue/Record.vue @@ -97,7 +97,7 @@ export default { this.getSearchList() }, toDetail(e) { - uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}&conversationId=${e.conversationId}`}) + uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}&conversationId=${e.conversationId}&aiConfigName=${e.aiConfigName}`}) // this.$emit('toDetail', {aiConfigId: e.aiConfigId}) }, del(e) { diff --git a/src/project/biaopin/AppDialogue/Talk.vue b/src/project/biaopin/AppDialogue/Talk.vue index 0171361c..1aafc8b0 100644 --- a/src/project/biaopin/AppDialogue/Talk.vue +++ b/src/project/biaopin/AppDialogue/Talk.vue @@ -200,6 +200,7 @@ export default { if(!this.user.token) { return this.$u.toast("请先进行登录") } + if(this.content === '') return // this.$loading() this.showLoad = true this.$http.post("/app/appaicopilotinfo/add", {content: this.content, appType: 0, areaId: this.areaId, aiConfigId: this.aiConfigId, supplementContent: this.latLng}).then(res => {