@cc-component/cc-core 1.4.1 → 1.4.2

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.
@@ -290,7 +290,7 @@ export class ResourceManager {
290
290
  });
291
291
  }
292
292
  // 检查资源是否已加载
293
- let asset = bundle.get(path);
293
+ let asset = bundle.get(path, type);
294
294
 
295
295
  if (asset) {
296
296
  //Logger.debug('已加载==', asset.refCount)
@@ -302,7 +302,7 @@ export class ResourceManager {
302
302
 
303
303
  // 加载资源
304
304
  return new Promise<T>((resolve, reject) => {
305
- bundle.load(path, (err, asset) => {
305
+ bundle.load(path, type, (err, asset) => {
306
306
  if (err) {
307
307
  console.error(`${bundleName}-加载资源失败: ${path}`);
308
308
  resolve(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",