<template>
  <div>
    <h1>对话示例</h1>
    <XConversation ref="XConversation"/>
  </div>
</template>

<script>
import XConversation from './XConversation.vue' // 请根据实际路径调整

export default {
  name: 'ConversationDemo',
  components: {
    XConversation
  },
  mounted () {
    this.$refs.XConversation.init({
      logicName: 'ragMessage',
      serviceName: 'af-gpt-apply'
    })
    this.$refs.XConversation.setAddtionalInfo({ patient_id: 37 })
  }
}
</script>

<style scoped>
/* 这里可以添加你的样式 */
</style>
