Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/create_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export default class CreateApp implements AppInterface {
}
} catch (e) {
logError('An error occurred when mount \n', this.name, e)
this.onerror(e)
}
}
}
Expand All @@ -353,6 +354,7 @@ export default class CreateApp implements AppInterface {
this.handleMounted(this.umdHookMount!(microApp.getData(this.name, true)))
} catch (e) {
logError('An error occurred when mount \n', this.name, e)
this.onerror(e)
}
}
}
Expand Down Expand Up @@ -383,6 +385,8 @@ export default class CreateApp implements AppInterface {
.then(nextAction)
.catch((e) => {
logError('An error occurred in window.mount \n', this.name, e)
this.onerror(e)
// TODO: 为什么 error 还要继续 nextAction?
nextAction()
})
} else {
Expand Down