()
| 322 | } |
| 323 | |
| 324 | async goBackward() { |
| 325 | const pageIndex = this.react.pathPageIds.indexOf(this.react.pageId!); |
| 326 | |
| 327 | if (pageIndex > 0) { |
| 328 | await this.goToPage( |
| 329 | this.react.pathPageIds[ |
| 330 | this.react.pathPageIds.indexOf(this.react.pageId!) - 1 |
| 331 | ], |
| 332 | ); |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | async goForward() { |
| 337 | const pageIndex = this.react.pathPageIds.indexOf(this.react.pageId!); |