小程序内<web-view src="{{webUrl}}" ></web-view>
h5内
<template>
<!-- <iframe
:src="webUrl"
frameborder="0"
style="width: 100%; height: 100%"
></iframe> -->
<div></div>
</template>
<script>
import { Base64 } from "js-base64";
export default {
name: "ExternalWeb",
props: {},
data() {
return {
webUrl: "",
};
},
mounted() {
this.webUrl = decodeURIComponent(Base64.decode(this.$route.query.url));
location.href = this.webUrl
},
};
</script>

iframe过不去了