From 87e5c2bba0316824cfdf421a187003a73a150b5c Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Tue, 26 Dec 2023 19:44:42 +0800 Subject: [PATCH] Update src/router/index.ts --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 7d10819e..2cfd6c9d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -60,7 +60,7 @@ router.beforeEach((to, from, next) => { } } - if (defaultPath === "") { + if (!defaultPath) { defaultPath = "/marketplace"; }