41 lines
663 B
Vue
Raw Normal View History

2023-06-13 10:20:18 +08:00
<template>
<div class="robotBox">
<iframe
:src=url
frameborder="0"
width="100%"
height="100%"
id="iframe"
></iframe>
</div>
</template>
<script>
import { getrobotUrlApi } from '@/assets/js/api/zhongjianFourth'
export default {
data(){
return{
url:'',
}
},
created() {
this.getUrl()
},
methods: {
getUrl() {
getrobotUrlApi({ projectSn: this.$store.state.projectSn }).then(res => {
this.url=res.result.url
console.log('机器人 this.url', this.url);
})
}
}
}
</script>
<style lang="less" scoped>
.robotBox {
width: 100%;
height: 100%;
}
</style>