smartProgram.navigateBack

解释:关闭当前页面,返回上一页面,同 swan.navigateBack

smartProgram.navigateBack(): Promise<Page>

示例代码:

automator.launch().then(async smartProgram => {
    await smartProgram.navigateBack();
});