增加对iframe的测试

This commit is contained in:
daihh
2022-11-26 11:26:07 +08:00
parent 44aeab29d8
commit d42fbe6ba4
4 changed files with 42 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -17,9 +17,9 @@
<script>
if(window.top != window.self){
window.top.location=window.self.location;
}
// if(window.top != window.self){
// window.top.location=window.self.location;
// }
//u-pre.boe.com b82bf0f37925106413d857aa98e47533
//u.boe.com ea89f02dca369037a73c5e3907e2c14a
var _hmt = _hmt || [];

View File

@@ -94,6 +94,7 @@ export const pages=[
];
export const iframes=[
{title:'嵌入测试', path:'/iframe/index',hidden:false,component:'portal/iframe'},
{title:'课件管理', path:'/iframe/course/coursewares',hidden:false,component:'course/Courseware'},
{title:'课程管理', path:'/iframe/course/manages',hidden:false,component:'course/ManageList'},
{title:'考试试题管理', path:'/iframe/exam/questions',hidden:false,component:'exam/Question'},

View File

@@ -0,0 +1,38 @@
<template>
<div class="box">
<iframe :src="url" style="width: 100%;height: 100%;margin-top: 30px;" frameborder="0"></iframe>
</div>
</template>
<script>
import portalHeader from "@/components/PortalHeader.vue";
import portalFooter from "@/components/PortalFooter.vue";
export default {
components: {
portalHeader,
portalFooter
},
data(){
return {
id: "",
url: "",
boeUrl:process.env.VUE_APP_BOE_WEB_URL
}
},
mounted() {
this.id = this.$route.query.id;
this.type = this.$route.query.type;
let urlPre=window.location.protocol+'//'+window.location.host;
this.url= `${urlPre}/pc/iframe/course/coursewares`
},
methods:{
}
}
</script>
<style lang="scss" >
.box{
// width: 100%;
height: 100%;
}
</style>