@ives_xxz/framework 2.1.26 → 2.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/log/FWLog.ts CHANGED
@@ -120,8 +120,16 @@ export class FWLog {
120
120
  }
121
121
  }
122
122
 
123
- if (!CC_DEBUG && !CC_DEV && !CC_BUILD) {
123
+ if (!CC_DEBUG && !CC_DEV && CC_BUILD) {
124
124
  window.console.log = () => {};
125
125
  window.console.warn = () => {};
126
126
  window.console.error = () => {};
127
+
128
+ console.log = () => {};
129
+ console.warn = () => {};
130
+ console.error = () => {};
131
+
132
+ cc.log = () => {};
133
+ cc.warn = () => {};
134
+ cc.error = () => {};
127
135
  }
@@ -138,7 +138,11 @@ export class FWResManager extends FWManager implements FW.ResManager {
138
138
  * @returns
139
139
  */
140
140
  async loadAssetData<T extends cc.Asset>(assetProperty: FW.AssetProperty) {
141
- return this.process<T>(await this.assetMgr.load(assetProperty));
141
+ try {
142
+ return this.process<T>(await this.assetMgr.load(assetProperty));
143
+ } catch (e) {
144
+ this.rejectHandlerListener?.loadResHandler?.(e, assetProperty.path);
145
+ }
142
146
  }
143
147
  /**
144
148
  * 加载资源
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "2.1.26",
3
+ "version": "2.1.28",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": ["123456"],