# PageObject[] getCurrentPages()

Gets the current page stack. The first element in the array is the home page and the last element is the current page.


  • Do not try to modify the page stack, which will cause routing and page state errors.
  • Don't be App.onLaunch When to call getCurrentPages()At this time page It has not been generated.