bug fix
This commit is contained in:
parent
4e7d24e236
commit
bd99b310a5
|
@ -21,7 +21,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"includeClientSideAssets": true,
|
"includeClientSideAssets": true,
|
||||||
"skipFeatureDeployment": true,
|
"skipFeatureDeployment": false,
|
||||||
"isDomainIsolated": false
|
"isDomainIsolated": false
|
||||||
},
|
},
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|
|
@ -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>`;
|
||||||
|
|
Loading…
Reference in New Issue