mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
26 lines
741 B
Vue
26 lines
741 B
Vue
<template>
|
|
<!--学习路径图-->
|
|
<div class="box">
|
|
<iframe id="studyPathFrame" src="/fe-student/learnpath" style="width: 100%;height: 100%;" frameborder="0"></iframe>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default{
|
|
mounted() {
|
|
const oIframe = document.getElementById('studyPathFrame');
|
|
//const deviceWidth = document.documentElement.clientWidth;
|
|
const deviceHeight = document.documentElement.clientHeight;
|
|
//oIframe.style.width = (Number(deviceWidth)-220) + 'px'; //数字是页面布局宽度差值
|
|
//oIframe.style.height = (Number(deviceHeight)-300) + 'px'; //数字是页面布局高度差
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.box{
|
|
// width: 100%;
|
|
height: 100%;
|
|
}
|
|
</style>
|