chat.vue 526 Bytes
Newer Older
dragondean@qq.com's avatar
dragondean@qq.com committed
1
<template>
dragondean@qq.com's avatar
dragondean@qq.com committed
2
    <iframe :src="url" class="iframe"></iframe>
dragondean@qq.com's avatar
dragondean@qq.com committed
3 4 5 6 7 8 9
</template>
<style>
    .iframe{
        width: 100%;
        height: calc(100vh - 84px);
        border: none;
    }
houjn@hikoon.cn's avatar
houjn@hikoon.cn committed
10
</style>
dragondean@qq.com's avatar
dragondean@qq.com committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<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>