Commit ed18f197 authored by 李维's avatar 李维

dev commit

parent a4da5f70
...@@ -202,9 +202,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -202,9 +202,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.refresh(); this.refresh();
/* Remove this when commit */ /* Remove this when commit */
if(location.href.indexOf("localhost") != -1) { // if(location.href.indexOf("localhost") != -1) {
(<any> window).axios.post(`http://www.datalist.com.cn:8060/json/save/${this.KEY}`, this.item) // (<any> window).axios.post(`http://www.datalist.com.cn:8060/json/save/${this.KEY}`, this.item)
} // }
/* Remove this when commit */ /* Remove this when commit */
console.log("保存", this.item) console.log("保存", this.item)
......
...@@ -109,14 +109,14 @@ cc.Class({ ...@@ -109,14 +109,14 @@ cc.Class({
}, },
getData(cb) { getData(cb) {
// cb(this.getDefaultData()); cb(this.getDefaultData());
cc.loader.load( "http://www.datalist.com.cn:8060/json/DataKey_dfzx_ppp", function( err, res) { // cc.loader.load( "http://www.datalist.com.cn:8060/json/DataKey_dfzx_ppp", function( err, res) {
if(err) { // if(err) {
cb(this.getDefaultData()); // cb(this.getDefaultData());
} else { // } else {
cb(JSON.parse(res)); // cb(JSON.parse(res));
} // }
}); // });
}, },
getDefaultData() { getDefaultData() {
......
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