feat: 新增api自动生成配置

This commit is contained in:
DEV_DSW
2025-12-16 11:30:08 +08:00
parent bfc602c420
commit a7b4c23155
67 changed files with 9570 additions and 4588 deletions

View File

@@ -1,8 +1,12 @@
import axios from 'axios'
// 获取.env中的服务地址
const { VITE_SERVICE_URL } = (import.meta as any).env
console.log("🚀 ~ SERVICE_URL:", VITE_SERVICE_URL)
// 创建axios对象
const instance = axios.create({
baseURL: '/api'
baseURL: VITE_SERVICE_URL
})
// 添加拦截器