Skip to content

Commit

Permalink
fix: 修改接口请求地址和代理前缀以适配开发环境
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jan 14, 2025
1 parent 7a268cb commit 947bac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VITE_APP_PORT = 2888
# 应用根路径
VITE_APP_ROOT_BASE = /
# 接口请求地址,会设置到 axios 的 baseURL 参数上
VITE_APP_API_BASEURL = https://demo.mineadmin.com/prod
VITE_APP_API_BASEURL = http://127.0.0.1:9501
# 路由模式: history 和 hash 两种,默认hash,带#号那种
VITE_APP_ROUTE_MODE = hash

Expand All @@ -15,7 +15,7 @@ VITE_APP_STORAGE_PREFIX = mine_
# 是否开启代理
VITE_OPEN_PROXY = true
# 代理前缀标识
VITE_PROXY_PREFIX = /prod
VITE_PROXY_PREFIX = /dev
# 是否开启vConsole (手机端调式可开启)
VITE_OPEN_vCONSOLE = false
# 是否开启开发者工具
Expand Down

0 comments on commit 947bac0

Please sign in to comment.