This commit is contained in:
宋伟佳
2021-08-03 10:15:14 +08:00
parent d5438065f0
commit 303afc61aa
11 changed files with 105 additions and 24 deletions
+2 -1
View File
@@ -7,10 +7,11 @@ import axios from 'axios'
import router from '@/router'
import store from '@/store'
import {Message} from 'element-ui'
import { serverUrl } from '@/sysConfig'
export const CancelToken = axios.CancelToken
// import 'element-ui/lib/theme-chalk/index.css'
const _axios = axios.create({
baseURL: 'http://62.234.136.153:8033/'
baseURL: process.env.NODE_ENV === 'production' ? serverUrl : '/'
})
/**