无法在 4.3 版中禁用自动下载

Can't disable auto-download in version 4.3

我的配置是:

self.editor = new $window.PhotoEditorSDK.UI.ReactUI({
    container,
    responsive: true,
    license: JSON.stringify(sdkLicenseData),
    assets: {
        baseUrl: '/dist/photoeditorsdk/assets/',
    },
    editor: {
        image: img,
    },
    style: {
        width: 800,
        height: 800,
    },
    enableExport: true,
    export: {
        type: $window.PhotoEditorSDK.ImageFormat.IMAGE,
        quality: 1.0,
        download: false,
    },
});

我能够检测到导出被点击:

self.editor.on('export', (newUrl) => {

.. 但它仍会下载图像。如何禁用它?

我也试过:

self.editor.on('export', (newUrl) => {
                            self.editor.export(false)
                                .then((data) => {
                                    const foo = 1;
                                });

...但是,当我执行第二行时,图像已经下载完毕。

此处的export字段必须在editor选项内,例如

self.editor = new $window.PhotoEditorSDK.UI.ReactUI({
container,
responsive: true,
license: JSON.stringify(sdkLicenseData),
assets: {
    baseUrl: '/dist/photoeditorsdk/assets/',
},
editor: {
    image: img,
    export: {
      type: $window.PhotoEditorSDK.ImageFormat.IMAGE,
      quality: 1.0,
      download: false,
  }
},
style: {
    width: 800,
    height: 800,
},
enableExport: true
})

那么应该可以了。