From 6e8a3c4bbfcb71f9d2acb6f36f8864914e9f76b7 Mon Sep 17 00:00:00 2001 From: lideming <14901890+lideming@users.noreply.github.com> Date: Thu, 29 Aug 2024 01:12:04 +0800 Subject: [PATCH] fix: initial list view for uploads --- src/Track/ListIndex.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Track/ListIndex.ts b/src/Track/ListIndex.ts index c4134d6..ba0a2ca 100644 --- a/src/Track/ListIndex.ts +++ b/src/Track/ListIndex.ts @@ -232,7 +232,10 @@ export class ListIndex { id = this.listView.get(0).listInfo.id; } if (id !== null) { - router.nav(["list", id.toString()], { pushState: false }); + router.nav( + id === 0 ? ["uploads"] : ["list", id.toString()], + { pushState: false }, + ); } } },