fix: export data

This commit is contained in:
wanying.jwy 2020-08-30 20:27:13 +08:00
parent 0e75b8e4a0
commit 41f7724ac3

View File

@ -484,7 +484,7 @@ export class DocumentModel {
// add toData
toData(extraComps?: string[]) {
const node = this.project?.currentDocument?.export(TransformStage.Save);
const node = this.export(TransformStage.Save);
const data = {
componentsMap: this.getComponentsMap(extraComps),
componentsTree: [node],