我正在使用https://pnp.github.io/pnpjs/graph/docs/中的OOB示例,其中我的渲染函数如下所示:
public render(): void {
// A simple loading message
this.domElement.innerHTML = `Loading...`;
// here we will load the current web's properties
graph.groups.get().then(groups => {
this.domElement.innerHTML = `Groups: <ul>${groups.map(g => `<li>${g.displayName}</li>`).join("")}</ul>`;
});
}
在加载时,Web部件将引发以下异常:
adalclient.ts:154 Uncaught (in promise) Error: Could not open pop-up window for auth. Likely pop-ups are blocked by the browser.
at AdalClient._this._displayCallback (adalclient.ts:154)
at Object.displayCall (adalclient.ts:118)
at AuthenticationContext.login (adal.min.js:2)
at adalclient.ts:176
在工作台和部署Webpart时都会发生这种情况。
我在这里错过了一步吗?别人有相同的结果吗?