当我使用FileLoader时,数据总是返回html的代码,代码有什么问题吗?(库makehuman-data已正确安装在node_module中)
let loadUrls = {
modeling_sliders: 'node_modules/makehuman-data/src/json/sliders/modeling_sliders.json',
resources: 'node_modules/makehuman-data/public/data/resources.json'
};
Promise.all(
// eslint-disable-next-line no-unused-vars
_.values(loadUrls).map((url) => new Promise((resolve) => {
loader.load(
url,
(data) => JSON.parse(data)
)
})
)
)