Commit eec62040 authored by limingzhe's avatar limingzhe
parents 3e18d4e9 589fde88
...@@ -85,6 +85,10 @@ cc.Class({ ...@@ -85,6 +85,10 @@ cc.Class({
getData((data) => { getData((data) => {
console.log('data:', data); console.log('data:', data);
this.data = data || this.getDefaultData(); this.data = data || this.getDefaultData();
const isDebug = cc.sys.localStorage.getItem('isDebug');
this.data.isDebug = this.data.isDebug || isDebug;
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