From 12c2659707c4671092baafdae2fbf0f13c04908b Mon Sep 17 00:00:00 2001 From: Yu Hengliang Date: Fri, 22 Mar 2024 20:03:46 +0800 Subject: [PATCH] Update RouteGroup.view.ts The page enter a dead loop when 'this.prevInfo.path' is empty ''. When the route is accessed directly, 'this.prevInfo.path' is '' --- src/Router/RouteGroup.view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Router/RouteGroup.view.ts b/src/Router/RouteGroup.view.ts index e5aa083..ec7048f 100755 --- a/src/Router/RouteGroup.view.ts +++ b/src/Router/RouteGroup.view.ts @@ -113,7 +113,7 @@ class RouteGroup implements RouteGroupProps { this._dl_router_baseUrl ) if (canGo === false) { - this.navigator.to(this.prevInfo.path) + this.prevInfo.path && this.navigator.to(this.prevInfo.path) return } if (typeof canGo === "string") {