【发布时间】:2020-02-06 11:49:57
【问题描述】:
我正在尝试在我的桌面应用程序(由 Election 和 Angular 构建)中使用 WebView。当我加载窗口时,我能够呈现 WebView,但在登录到网站的 WebView 内容后,所有其他剩余功能都无法正常工作。
注意:网站是使用百里香开发的。
我尝试如下:
<webview id="mainwebview" nodeintegration='on' src="https://tarc-uat.gfcp.io/"
style=" width:100%; height:calc(100vh - 11vw)" partition="persist:sitesession" disablewebsecurity="on" webpreferences="allowRunningInsecureContent" >
<div class="indicator"> </div>
</webview>
和脚本:
onload = () => {
const webv = document.getElementById('mainwebview')
window.addEventListener('load', () => {
webv.addEventListener('dom-ready', () => {
});
})
}
【问题讨论】:
标签: javascript angular webview electron