Fix bug in selection of screens to cache
This commit is contained in:
@@ -41,7 +41,7 @@ export class NavigationTabModel {
|
|||||||
|
|
||||||
getBackList(n: number) {
|
getBackList(n: number) {
|
||||||
const start = Math.max(this.index - n, 0)
|
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) => ({
|
return this.history.slice(start, end).map((item, i) => ({
|
||||||
url: item.url,
|
url: item.url,
|
||||||
title: item.title,
|
title: item.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user