<template>
  <div class="chatArea">
		<bar :backPage="1" tit="聊天"/>
		<iframe ref="iframeRef" class="ca_iframe" allow="camera *; microphone *;display-capture;midi;encrypted-media;" :src="src"></iframe>
  </div>
</template>

<script>
import bar from './component/bar.vue';
export default {
	components:{
		bar
	},
  data() {
    return {
			userId: this.$store.state.user.userinfo.userid,
      org: this.$store.state.user.userinfo.org,
      oid: this.$store.state.user.userinfo.organizeid,
			src:`https://beta.cloud.cocorobo.cn/aigpt/#/poc?muti_agent_id=90bec943-65cf-11ef-9db4-12e77c4cb76b&isPbl=false`
    };
  },
  methods: {

  },
  mounted() {
		this.src = `https://beta.cloud.cocorobo.cn/aigpt/#/poc?muti_agent_id=90bec943-65cf-11ef-9db4-12e77c4cb76b&isPbl=false&session_id=${this.userId}-chat`
    console.log("聊聊天")
  }
};
</script>

<style scoped>
.chatArea{
	width: 100vw;
	height: 100vh;
	box-sizing: border-box;
	padding-top: 40px;
	overflow: hidden;
}

.ca_iframe{
	width: 100%;
	height: 100%;
}
</style>
