优化promise+第一次进入模型不加载
This commit is contained in:
@@ -81,12 +81,11 @@ async function handleMounted() {
|
||||
|
||||
// 给对象初加载设备模型
|
||||
demo.initDevicesModel(map);
|
||||
await Promise.all([map.get("equ_fan"), map.get("equ_sensors")]);
|
||||
demo.tunnelModeInit();
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
demo.tunnelModeInit();
|
||||
|
||||
}
|
||||
|
||||
// 每个模型加载回调
|
||||
|
||||
@@ -513,7 +513,7 @@ export default class Demo {
|
||||
for (const item of this.tunnelConfigEquipment) {
|
||||
//使用api取拿到附着点
|
||||
let pointmodel = this.scene.getObjectByName(item.pointName)
|
||||
// pointmodel.hasDevice = true;
|
||||
pointmodel.hasDevice;
|
||||
let formInfo = {
|
||||
equipmentType: item.equipmentType, //设备类型
|
||||
chooseEquipment: item.equipmentName, //设备选择(设备名称)
|
||||
|
||||
Reference in New Issue
Block a user