diff --git a/src/platforms/h5/view/components/web-view/index.vue b/src/platforms/h5/view/components/web-view/index.vue index b37663bce1054eda03274eb793f51f72cc131eed..34902255541b62524890fdc7ed83466f76b44122 100644 --- a/src/platforms/h5/view/components/web-view/index.vue +++ b/src/platforms/h5/view/components/web-view/index.vue @@ -2,7 +2,7 @@ @@ -22,6 +22,9 @@ export default { }, mounted () { this.iframe = document.createElement('iframe') + Object.keys(this.$attrs).forEach(key => { + this.iframe[key] = this.$attrs[key] + }) this.iframe.src = this.$getRealPath(this.src) document.body.appendChild(this.iframe) this._resize()