Browse Source

动态接口

twt 2 years ago
parent
commit
60779cde9c
1 changed files with 6 additions and 3 deletions
  1. 6 3
      utils/request.js

+ 6 - 3
utils/request.js

@@ -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) => {