1、html项目放入 vue项目static目录下
2、vue页面写入
<template>
<div class="page">
<iframe src="../../../static/pc-sxdx/mobile/index.html?islogin=true" scrolling="no" frameborder="0" :style="{width:'100%',height:GetWindowHeight}"></iframe>
</div>
</template>
<script>
export default {
data() {
return {
GetWindowHeight:'0'
};
},
created(){
this.GetWindowHeight = window.innerHeight + 'px';
},
methods: {
},
}
</script>
<style scoped>
</style>
3、html页面返回vue项目
function back() {
window.parent.location.href='../../../index.html'
}