From e6a702e105aeab759280a0d0a2480434d4184765 Mon Sep 17 00:00:00 2001 From: dyhe83 Date: Mon, 6 Jul 2020 20:02:39 +0800 Subject: [PATCH] should load image from tree node --- examples/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/App.js b/examples/src/App.js index 773a111..a5264f1 100644 --- a/examples/src/App.js +++ b/examples/src/App.js @@ -138,7 +138,7 @@ export default class App extends React.Component { this.handleDownload() }} loadImage={d => { - return Promise.resolve(avatarPersonnel) + return Promise.resolve(d) }} loadParent={d => { const parentData = this.getParent(d)