Skip to content

Commit

Permalink
feat(project): 修改路由模式,增加vercel配置
Browse files Browse the repository at this point in the history
  • Loading branch information
chansee97 committed Feb 6, 2023
1 parent 1fbd4e3 commit a1ffb3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ VITE_APP_TITLE=Ench管理系统
VITE_APP_DESC=EnchAdmin是一个中后台管理系统模版

# 路由模式
VITE_HASH_ROUTE = Y
VITE_HASH_ROUTE = N
# 权限路由模式: static | dynamic
VITE_AUTH_ROUTE_MODE=dynamic
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}

1 comment on commit a1ffb3c

@vercel
Copy link

@vercel vercel bot commented on a1ffb3c Feb 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ench-admin – ./

ench-admin.vercel.app
ench-admin-whyhenin.vercel.app
ench-admin-git-main-whyhenin.vercel.app

Please sign in to comment.