|
@@ -16,17 +16,12 @@
|
16
|
16
|
// })
|
17
|
17
|
// }
|
18
|
18
|
|
19
|
|
-// export const domain = process.env.NODE_ENV === 'development' ? '' : 'https://hhdlots.njyunzhi.com'
|
20
|
|
-
|
21
|
|
-// export const baseURL = `${domain}/api/wx`
|
22
|
|
-
|
23
|
|
-
|
24
|
|
-
|
25
|
|
-
|
26
|
19
|
|
27
|
20
|
import axios from 'axios'
|
28
|
21
|
import store from '../store'
|
29
|
22
|
|
|
23
|
+export const domain = process.env.NODE_ENV === 'development' ? '' : 'http://colmo-service.dianyang.njyunzhi.com'
|
|
24
|
+
|
30
|
25
|
export default function (url, options) {
|
31
|
26
|
const { params, header, ...leftOptions } = options || {}
|
32
|
27
|
|
|
@@ -37,7 +32,7 @@ export default function (url, options) {
|
37
|
32
|
}
|
38
|
33
|
axios.request({
|
39
|
34
|
...leftOptions,
|
40
|
|
- url: url,
|
|
35
|
+ url: `${domain}${url}`,
|
41
|
36
|
// header: header,
|
42
|
37
|
headers: header,
|
43
|
38
|
}).then(res => {
|