|
@@ -1,10 +1,13 @@
|
|
|
//测试地址
|
|
|
-const baseUrl = 'http://api.dms.66km.com.cn/'
|
|
|
+//const baseUrl = 'http://api.dms.66km.com.cn/'
|
|
|
//const baseUrl = 'http://192.168.0.121:20187/'
|
|
|
-
|
|
|
+//正式
|
|
|
+//const baseUrl = 'http://apidms.66km.com/'
|
|
|
//正式地址
|
|
|
import $store from '../store'
|
|
|
-
|
|
|
+const extConfig = uni.getExtConfigSync();
|
|
|
+console.log(extConfig)
|
|
|
+const baseUrl=extConfig.url+'/'
|
|
|
const http = (url = '', date = {}, type = 'POST', header = {
|
|
|
}) => {
|
|
|
return new Promise((resolve, reject) => {
|