Commit 005a32db authored by liujiangnan's avatar liujiangnan

feat: 调试模式

parent f89a7df2
...@@ -70,6 +70,10 @@ cc.Class({ ...@@ -70,6 +70,10 @@ cc.Class({
console.log('this.data:', this.data); console.log('this.data:', this.data);
this.data = JSON.parse(JSON.stringify(this.data)) this.data = JSON.parse(JSON.stringify(this.data))
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