<template>
  <div>
    <button @click="open()">chat gpt</button>
    <xChat ref="chart"></xChat>
  </div>

</template>

<script>
import { xChat } from '../src'

export default {
  components: { xChat },
  methods: {
    open() {
      this.$refs.chart.init()
    }
  }
}
</script>
