|
@@ -170,8 +170,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
console.warn("重新加载布局", arrFrunList,this.spaceList,this.gltfLayouts,allowSpaceId);
|
|
|
- arrFrunList.forEach(signel => {
|
|
|
- let spaceId = this.spaceList.find(it => it.layoutId == signel.id).spaceId;
|
|
|
+ //每个空间都处理下,确保空间不遗漏,arrFrunList遍历,如果不同空间使用同一个布局,会出现只处理第一个空间
|
|
|
+ this.spaceList.forEach(space=>{
|
|
|
+ let spaceId = space.spaceId;
|
|
|
+ let signel = arrFrunList.find(it => it.id == space.layoutId);
|
|
|
if(allowSpaceId.includes(spaceId)){//只加载允许的空间的布局,其他不加载
|
|
|
let md = JSON.parse(signel.modelJson); //获取布局里面的模型信息
|
|
|
//遍历模型信息,获取模型列表
|
|
@@ -195,7 +197,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
// 处理删除模型时,其他空间引用了该模型时的重新载入处理
|
|
|
// if(this.lastFrunList && this.lastFrunList.length>0){
|
|
|
// let spaceIds = tmpSpaceList.map(it=>it.spaceId);
|