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"; }