conversationId

This commit is contained in:
liuye
2024-07-17 11:05:45 +08:00
parent 86623fd09a
commit 0aec948fe9
2 changed files with 5 additions and 3 deletions

View File

@@ -63,7 +63,8 @@ export default {
],
current: 1,
pages: 2,
aiConfigId: ''
aiConfigId: '',
conversationId: ''
}
},
computed: {
@@ -71,6 +72,7 @@ export default {
},
onLoad(e) {
this.aiConfigId = e.aiConfigId
this.conversationId = e.conversationId
this.getHistoryList()
},
onShow() {
@@ -89,7 +91,7 @@ export default {
return this.$u.toast("请先进行登录")
}
this.$loading()
this.$http.post(`/app/appaicopilotinfo/list?current=${this.current}&size=10&content=${this.searchVal}&aiConfigId=${this.aiConfigId}`).then(res => {
this.$http.post(`/app/appaicopilotinfo/list?current=${this.current}&size=10&content=${this.searchVal}&aiConfigId=${this.aiConfigId}&conversationId=${this.conversationId}`).then(res => {
if(res.code == 0 && res.data.records.length) {
res.data.records.map((item) => {
if(item.sdkFileUrl) {

View File

@@ -102,7 +102,7 @@ export default {
this.getSearchList()
},
toDetail(e) {
uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}`})
uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}&conversationId=${e.conversationId}`})
// this.$emit('toDetail', {aiConfigId: e.aiConfigId})
},
del(e) {