@ives_xxz/framework 2.1.26 → 2.1.27
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/manager/FWResManager.ts +5 -1
- package/package.json +1 -1
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
|
* 加载资源
|