Fix bug in selection of screens to cache
parent
bb51af5ae9
commit
5f48cb5e27
|
@ -41,7 +41,7 @@ export class NavigationTabModel {
|
|||
|
||||
getBackList(n: number) {
|
||||
const start = Math.max(this.index - n, 0)
|
||||
const end = Math.min(this.index, n)
|
||||
const end = this.index
|
||||
return this.history.slice(start, end).map((item, i) => ({
|
||||
url: item.url,
|
||||
title: item.title,
|
||||
|
|
Loading…
Reference in New Issue