This commit is contained in:
serdar 2019-06-11 14:34:09 +03:00
parent 4e7d24e236
commit bd99b310a5
2 changed files with 9 additions and 1 deletions

View File

@ -21,7 +21,7 @@
} }
], ],
"includeClientSideAssets": true, "includeClientSideAssets": true,
"skipFeatureDeployment": true, "skipFeatureDeployment": false,
"isDomainIsolated": false "isDomainIsolated": false
}, },
"paths": { "paths": {

View File

@ -17,6 +17,7 @@ import OfficeUIFabricVue from 'office-ui-fabric-vue';
// import css style // import css style
import 'office-ui-fabric-vue/dist/index.css'; import 'office-ui-fabric-vue/dist/index.css';
import OrgChartService from './services/OrgChartService'; import OrgChartService from './services/OrgChartService';
import { setup as pnpSetup } from "@pnp/common";
export interface IOrgChartWebPartProps { export interface IOrgChartWebPartProps {
description: string; description: string;
@ -24,6 +25,13 @@ export interface IOrgChartWebPartProps {
export default class OrgChartWebPart extends BaseClientSideWebPart<IOrgChartWebPartProps> { export default class OrgChartWebPart extends BaseClientSideWebPart<IOrgChartWebPartProps> {
public onInit(): Promise<void> {
return super.onInit().then(_ => {
pnpSetup({spfxContext: this.context});
});
}
public render(): void { public render(): void {
const id: string = `wp-${this.instanceId}`; const id: string = `wp-${this.instanceId}`;
this.domElement.innerHTML = `<div id="${id}"></div>`; this.domElement.innerHTML = `<div id="${id}"></div>`;