feat(project): 修改路由模式,增加vercel配置

This commit is contained in:
chen.home 2023-02-06 22:43:58 +08:00
parent 1fbd4e3d61
commit a1ffb3c884
2 changed files with 4 additions and 1 deletions

2
.env
View File

@ -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
vercel.json Normal file
View File

@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}