data () {
return {
para:{},
htmlStr:'',
htmlSrc:'',
rlen:history.length,
}
},
mounted () {
},
methods: {
//返回
goBack () {
let len = this.rlen - history.length - 1;//-1是不进入iframe页面的下级页面直接退出的话,执行后退一步的操作
this.$router.go(len);
},
}
vue中用iframe嵌套页面,判断进入层级并返回
最新推荐文章于 2024-03-25 10:09:54 发布