Skip to content

Commit

Permalink
fix(cli): 优化site routes
Browse files Browse the repository at this point in the history
affects: @varlet/cli
  • Loading branch information
haoziqaq committed Mar 1, 2021
1 parent f6eaa11 commit 8f11570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/varlet-cli/site/mobile/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const redirect = get(config, 'mobile.redirect')
redirect &&
routes.push({
path: '/:pathMatch(.*)*',
redirect: get(config, 'pc.redirect') ?? '/',
redirect,
})

const router = createRouter({
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-cli/site/pc/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const redirect = get(config, 'pc.redirect')
redirect &&
routes.push({
path: '/:pathMatch(.*)*',
redirect: get(config, 'pc.redirect') ?? '/',
redirect,
})

const router = createRouter({
Expand Down

0 comments on commit 8f11570

Please sign in to comment.