Commit ed18f197 authored by 李维's avatar 李维

dev commit

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