33 lines
458 B
Vue
33 lines
458 B
Vue
<template>
|
|
<div class="center">
|
|
<iframe
|
|
:src="url"
|
|
frameborder="0"
|
|
width="100%"
|
|
height="100%"
|
|
id="iframe"
|
|
></iframe>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import bus from "@/util/eventBus.js";
|
|
export default {
|
|
data() {
|
|
return {
|
|
url: "",
|
|
};
|
|
},
|
|
mounted() {
|
|
bus.$on("threeData", (data) => {
|
|
this.url = data;
|
|
console.log("链接数据", this.url);
|
|
});
|
|
},
|
|
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style> |