<template>
  <div
    style="height: 100vh;"
    v-if="token">
    <iframe
      :src="`http://175.44.31.47:3000/ticketLogin?keys=${token}`"
      frameborder="0"
      height="100%"
      width="100%"></iframe>
  </div>
</template>

<script>
import { getKeys } from '@/api/order'

export default {
  data () {
    return {
      token: ''
    }
  },
  mounted () {
    getKeys().then(res => {
      this.token = res.data.keys
    })
  }
}
</script>

<style scoped></style>
