diff --git a/pages/index/detail.vue b/pages/index/detail.vue index 8d0c6ec..8a134b3 100644 --- a/pages/index/detail.vue +++ b/pages/index/detail.vue @@ -397,6 +397,10 @@ console.log({ // "streaming": true, // "history": [] }) + let sectionType = "2" + if(this.params.sectionType != 'null') { + sectionType = this.params.sectionType + } const [err, res] = await uni.request({ // url: 'http://10.16.3.159:8777/api/local_doc_qa/local_doc_chat', url: $.chatUrl + "/chat", @@ -420,7 +424,7 @@ console.log({ taskId: this.params.taskId, sectionId: this.params.sectionId, - sectionType: this.params.sectionType || "2", + sectionType: sectionType, // "user_id": "zzp", // "kb_ids": ["KBa80ea15e786241eca70a20f136f4e34c"], // "question": "隐患排查流程是什么",