41 lines
663 B
Vue
41 lines
663 B
Vue
|
|
<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>
|