1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 12:10:20 +08:00

feat: 本地环境改用直调apifox云端mock接口

This commit is contained in:
zclzone
2024-05-29 21:48:05 +08:00
parent 160910bb85
commit 905476abf7
2 changed files with 7 additions and 4 deletions

View File

@@ -4,6 +4,9 @@ VITE_USE_HASH = 'true'
# 资源公共路径,需要以 /开头和结尾
VITE_PUBLIC_PATH = '/'
# 代理配置-target 本地服务 | Apifox云端mock
# VITE_PROXY_TARGET = 'http://localhost:8085'
VITE_PROXY_TARGET = 'https://mock.apifox.com/m1/3776410-0-default/'
# Axios 基础路径
# VITE_AXIOS_BASE_URL = '/api' # 用于代理
VITE_AXIOS_BASE_URL = 'https://mock.apifox.com/m1/3776410-0-default' # apifox云端mock
# 代理配置-target
VITE_PROXY_TARGET = 'http://localhost:8085'