From c3358cdf0ab8f39344205274bac96631030e6523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98YAG=E2=80=99?= <‘ioingnet@gmail.com’> Date: Mon, 28 Nov 2022 17:25:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=95=E5=8E=86=E5=8F=B2=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E7=9A=84=E5=8E=86=E5=8F=B2=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/Segue/History.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9d3d951..25be86d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lath", - "version": "0.10.9", + "version": "0.10.13", "description": "Seamless connection of pages.", "keywords": [ "lath", diff --git a/src/Segue/History.ts b/src/Segue/History.ts index 13005be..51d01a4 100755 --- a/src/Segue/History.ts +++ b/src/Segue/History.ts @@ -158,8 +158,6 @@ class SegueHistory extends SegueBase { } public requestRegisterHistory(id = '', title = '', search = ''): void { if (this.applet.viewType === 'portal') return - // No state changes are made to those returned from history - if (this.fromHistoryBack || this.fromHistoryForward) return if (this.options.oneHistory) { if (this.prevHistoryStep === -1) { return this.replaceState(id, title, search) @@ -167,6 +165,8 @@ class SegueHistory extends SegueBase { } else if (this.prevHistoryStep === -1) { return this.replaceState(id, title, search) } + // No state changes are made to those returned from history + if (this.fromHistoryBack || this.fromHistoryForward) return this.pushState(id, title, search) } public async toHistory(state?: PopState): Promise {