This commit is contained in:
宋伟佳
2021-08-03 14:04:58 +08:00
parent d7dd4a9649
commit 23e9389958
3 changed files with 69 additions and 62 deletions
+2 -2
View File
@@ -7,11 +7,11 @@ import axios from 'axios'
import router from '@/router'
import store from '@/store'
import {Message} from 'element-ui'
import { serverUrl } from '@/sysConfig'
import { baseUrl } from '@/sysConfig'
export const CancelToken = axios.CancelToken
// import 'element-ui/lib/theme-chalk/index.css'
const _axios = axios.create({
baseURL: process.env.NODE_ENV === 'production' ? serverUrl : '/'
baseURL: process.env.NODE_ENV === 'production' ? baseUrl : '/'
})
/**