1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 23:50:22 +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

@@ -12,7 +12,7 @@ import { setupInterceptors } from './interceptors'
export function createAxios(options = {}) {
const defaultOptions = {
baseURL: '/api',
baseURL: import.meta.env.VITE_AXIOS_BASE_URL,
timeout: 12000,
}
const service = axios.create({