refactor: ♻️ mock 解决方案方案替换为 vite-plugin-mock-dev-server

This commit is contained in:
郝先瑞
2024-01-10 23:03:25 +08:00
parent c82b055fe8
commit 5d168689e5
22 changed files with 711 additions and 1593 deletions

View File

@@ -1,14 +1,8 @@
## 开发环境
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV='development'
# 应用端口
VITE_APP_PORT = 3000
# API请求前缀
# 代理前缀
VITE_APP_BASE_API = '/dev-api'
# proxy代理配置
VITE_APP_API_URL = 'http://vapi.youlai.tech' # 线上接口
# VITE_APP_API_URL = 'http://localhost:8989' # 本地接口本地启动后端https://gitee.com/youlaiorg/youlai-boot
# VITE_APP_API_URL = 'http://localhost:3000' # 本地Mock