page.path

解释:页面路径。

page.path: string

示例代码:

automator.launch().then(async smartProgram => {
    await smartProgram.reLaunch('/pages/api/api');
    const page = await smartProgram.currentPage();
    console.log(page.path) // pages/api/api
});