common/request.js
@@ -14,8 +14,12 @@ } return new Promise((resolve, reject) => { const token = uni.getStorageSync('token'); // const URL = 'http://47.76.147.249:8080/rsf-server/pda' + url; const URL = 'http://192.168.4.24:8080/rsf-server/pda' + url; // const URL = 'http://192.168.4.34:8085/rsf-server/pda' + url; let baseUrl = uni.getStorageSync('baseUrl'); if (!baseUrl) { baseUrl = 'http://127.0.0.1:8085/rsf-server/pda'; } const URL = baseUrl+'/pda' + url; uni.request({ url: URL, data: postData,