chat.vue 526 Bytes
Newer Older
lanbaoming's avatar
lanbaoming committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<template>
    <iframe :src="url" class="iframe"></iframe>
</template>
<style>
    .iframe{
        width: 100%;
        height: calc(100vh - 84px);
        border: none;
    }
</style>
<script>
import {getUserProfile} from "@/api/system/user";

export default {
  data() {
    return {
      username: ''
    }
  },
  computed:{
    url(){
      return 'https://chatgpt.groupage.cn/#/' + this.username
    }
  },
  created() {
    getUserProfile().then(res => {
      this.username = res.data.username
    })
  }
}
</script>