|
|
|
@ -62,7 +62,6 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { useUserStore } from "../../stores/modules/userInfo.js" |
|
|
|
import { |
|
|
|
getAnswerApi |
|
|
|
} from "../../api/customerServicePlatform/customerServicePlatform"; |
|
|
|
@ -74,14 +73,11 @@ |
|
|
|
questionTitle: '', |
|
|
|
answerContent: '正在思考...', |
|
|
|
showLoginRegister:false, |
|
|
|
token:'' |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.iSMT = uni.getSystemInfoSync().statusBarHeight || 0; |
|
|
|
this.getAnswerContent() |
|
|
|
const memberStore = useUserStore() |
|
|
|
this.token = memberStore.userInfo?.token |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
if (options.question) { |
|
|
|
@ -106,7 +102,6 @@ |
|
|
|
const res = await getAnswerApi({ |
|
|
|
question: this.questionTitle, |
|
|
|
conversationId: conversationId, |
|
|
|
token:this.token |
|
|
|
}) |
|
|
|
console.log(res) |
|
|
|
|
|
|
|
|