Commit 284b8eae authored by bobo826's avatar bobo826

feat: baseURL字段更改

parent b8b10ddd
import axios from 'axios';
const http = axios.create({
baseUrl: process.env.NODE_ENV === 'production' ? '/' : '/api'
baseURL: process.env.NODE_ENV === 'production' ? '/' : '/api'
})
http.defaults.timeout = 10000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment