This commit is contained in:
宋伟佳
2021-06-04 10:54:45 +08:00
parent dfaa5ddf3e
commit a96acfaa1c
7 changed files with 12 additions and 13 deletions
+2 -4
View File
@@ -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,