Commit 44490a84 authored by yzl's avatar yzl

测试

parent 889b0321
......@@ -170,9 +170,16 @@
type: 'GET',
url: window.location.origin + currentUrl + '/config.json',
success: function(data) {
setIp(data.ip);
let json;
if(typeof data === 'string'){
json = JSON.parse(data);
} else {
json = data;
}
setIp(json.ip);
getValues(data.ip);
getValues(json.ip);
}
})
}
......
......@@ -217,14 +217,22 @@
type: 'GET',
url: window.location.origin + currentUrl + '/config.json',
success: function(data) {
console.log(data);
console.log(data.ip);
setIp(data.ip);
let json;
if(typeof data === 'string'){
json = JSON.parse(data);
} else {
json = data;
}
console.log(json);
console.log(json.ip);
setIp(json.ip);
getList(data.ip);
getList(json.ip);
getProjectInfo(data.ip);
getProjectInfo(json.ip);
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment