We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b81baf5 commit cecb606Copy full SHA for cecb606
1 file changed
packages/plugins/materials/src/composable/useMaterial.ts
@@ -420,7 +420,9 @@ const setMaterial = (name, data) => {
420
*/
421
export const getMaterialsRes = async () => {
422
const bundleUrls = getMergeMeta('engine.config')?.material || []
423
- const materials = await Promise.allSettled(bundleUrls.map((url) => getMetaApi(META_SERVICE.Http).get(url)))
+ const materials = await Promise.allSettled(
424
+ bundleUrls.map((url) => (typeof url === 'string' ? getMetaApi(META_SERVICE.Http).get(url) : url))
425
+ )
426
return materials
427
}
428
0 commit comments