目录

CloseAction

The action to be taken when the browser is about to close.

type CloseAction = 'close' | 'cancel' | 'default';

Types 

'close' 

Close the browser.

'cancel' 

Do not close the browser.

'default' 

Use the default behavior.