|
@@ -3,12 +3,15 @@ import { MessageBox, Message, Loading } from 'element-ui'
|
|
|
import store from '@/store'
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
import Storage from '@/utils/storage'
|
|
|
-import { serverUrl, apiMode } from '@/utils/domain'
|
|
|
+// import { serverUrl, apiMode } from '@/utils/domain'
|
|
|
+// import { serverUrl, apiMode } from '../../public/domain'
|
|
|
import * as Foundation from '@/utils/Foundation'
|
|
|
import md5 from 'js-md5'
|
|
|
import checkToken from '@/utils/checkToken'
|
|
|
const qs = require('qs')
|
|
|
// create an axios instance
|
|
|
+const serverUrl = domain.serverUrl
|
|
|
+const apiMode = domain.apiMode
|
|
|
const service = axios.create({
|
|
|
baseURL: serverUrl, // url = base url + request url
|
|
|
// withCredentials: true, // send cookies when cross-domain requests
|