|
@@ -1,12 +1,12 @@
|
|
|
const ui = require('./ui');
|
|
|
-const BASE_URL = 'http://192.168.1.64:8080/monitor'
|
|
|
-// const BASE_URL = 'http://119.29.97.109:8080/monitor'
|
|
|
+ // const BASE_URL = 'http://192.168.2.246:8080/monitor'
|
|
|
+ const BASE_URL = 'http://119.29.97.109:8080/monitor'
|
|
|
|
|
|
function request(obj) {
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
if(obj.showLoading){
|
|
|
ui.showLoading(obj.message? obj.message : '加载中...');
|
|
|
- }
|
|
|
+ }
|
|
|
var data = {};
|
|
|
if(obj.data) {
|
|
|
data = obj.data;
|