feat: 优化前端布局和代理配置
refactor: 移除调试日志并优化代码结构 style: 调整响应式设计和UI细节 fix: 修复路由和导航相关的问题
This commit is contained in:
@@ -4,7 +4,7 @@ import { ElMessage } from 'element-plus'
|
||||
|
||||
// 创建axios实例
|
||||
const api = axios.create({
|
||||
baseURL: 'http://www.qf1121.top/api', // API基础URL
|
||||
baseURL: '/api', // API基础URL,使用相对路径,通过Vite代理转发
|
||||
timeout: 10000, // 请求超时时间
|
||||
withCredentials: true // 允许跨域请求携带凭证(如cookies)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user