@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 +9 -1
- package/manager/FWResManager.ts +5 -1
- package/package.json +1 -1
package/log/FWLog.ts
CHANGED
|
@@ -120,8 +120,16 @@ export class FWLog {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
if (!CC_DEBUG && !CC_DEV &&
|
|
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
|
}
|
package/manager/FWResManager.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
* 加载资源
|