| | |
| | | import { ErrorCode } from "@/utils/http"; |
| | | import { ComponentWithComputed, } from "miniprogram-computed"; |
| | | import { uuid } from "@/utils/uuid"; |
| | | import { getStorage } from "@/utils/storage"; |
| | | |
| | | const app = getApp(); |
| | | // pages/question/question.js |
| | |
| | | displaySampleList: [], |
| | | section_a_id: '', |
| | | sample_id: '', |
| | | }, |
| | | userName:getStorage('username'), |
| | | |
| | | }, |
| | | onClickClear(){ |
| | | console.log('clear'); |
| | | |
| | | this.setData({ |
| | | sendText:'' |
| | | }) |
| | | }, |
| | | async getSampleList() { |
| | | const res = await getSelectSample({ |
| | | section_b_id: '', |
| | |
| | | i++; |
| | | }); |
| | | |
| | | // 过滤为null的结果 |
| | | this.setData({ |
| | | chatHistory: this.data.chatHistory |
| | | chatHistory: this.data.chatHistory.filter(item=>!!item) |
| | | }) |
| | | this.scrollToBottom() |
| | | |