interface DesktopMsgProps { /** 标题 */ title : string ; /** 正文 */ body : string ; /** ICON */ icon ? : string ; } export Author Date Last Last param { DesktopMsgProps } option returns feature export function DesktopMsg ( option ) { const msgfunc = new window . Notification ( option . title , option ) ; return new Promise ( ( resolve ) => { msgfunc . onclick = ( ) => { resolve ( true ) ; } ; } ) ; }