2023-06-13 10:20:18 +08:00

41 lines
663 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>