Commit 5278c1b4 authored by linzhiguo's avatar linzhiguo

# 测试用,只使用内置数据

parent 7dc86ead
...@@ -61,7 +61,8 @@ cc.Class({ ...@@ -61,7 +61,8 @@ cc.Class({
getData((data) => { getData((data) => {
console.log('data:', data); console.log('data:', data);
this.data = data || this.getDefaultData(); //this.data = data || this.getDefaultData();
this.data = this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data)) this.data = JSON.parse(JSON.stringify(this.data))
this.preloadItem() this.preloadItem()
}) })
......
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