如果您想在 Vue 应用程序中重新加载一个嵌入在 iframe 中的网页,您可以使用下面的代码:
document.getElementById("iframeId").contentWindow.location.reload();
您需要使用 iframe 的 id 来访问它,然后调用 contentWindow
属性并使用 location.reload
方法来重新加载网页。
请注意,这只适用于嵌入在 iframe 中的网页是同源的。如果网页是跨域的,则无法使用这种方法重新加载。