commit
This commit is contained in:
@@ -9,9 +9,7 @@ import store from '@/store'
|
||||
import {Message} from 'element-ui'
|
||||
export const CancelToken = axios.CancelToken
|
||||
// import 'element-ui/lib/theme-chalk/index.css'
|
||||
const _axios = axios.create({
|
||||
baseURL: '/'
|
||||
})
|
||||
const _axios = axios.create()
|
||||
|
||||
/**
|
||||
* @description: FormData
|
||||
@@ -65,7 +63,7 @@ _axios.interceptors.response.use(
|
||||
}
|
||||
})
|
||||
function api () {
|
||||
return store.getters.getTypeFlag === 'CloudRepository' ? '/busApi/' : '/api/'
|
||||
return store.getters.getTypeFlag === 'CloudRepository' ? '/busApi/' : ''
|
||||
}
|
||||
export default {
|
||||
_axios,
|
||||
|
||||
Reference in New Issue
Block a user