Commit 589fde88 authored by liujiangnan's avatar liujiangnan

feat: debug模式

parent be598ac5
...@@ -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