首页 > 解决方案 > 更改 Embed 或 iframe 的标题

问题描述

我正在尝试编辑 iframe 的标题

<iframe :src="urlTerm" width="100%" height="600px" id="iframe-comercial">
</iframe>

当窗口加载时,我调用该函数

getTerm () {
  this.spinner = true
  this.service.getTerm()
    .then(blob => {
      this.urlTerm = window.URL.createObjectURL(blob)
    })
    .catch(error => {
      console.log(error)
    })
    .finally(() => {
      this.spinner = false
    })
}

观察:我正在使用 VueJs

使用 blob 的下载默认值,结果是一个 guid url,然后是一个 guid 标题:

示例图像

标签: javascriptiframeembed

解决方案


推荐阅读