|
|
@@ -17,6 +17,7 @@ import ddFc_lt from './dandaoFcLt.threejs';
|
|
|
import SdFcZhq from './shuangdaoFcZhq.threejs';
|
|
|
import { animateCamera } from '/@/utils/threejs/util';
|
|
|
import useEvent from '../../../../utils/threejs/useEvent';
|
|
|
+import { useModelFileStore } from '/@/store/modules/modelFile';
|
|
|
import { getDictItemsByCode } from '/@/utils/dict';
|
|
|
|
|
|
// import * as dat from 'dat.gui';
|
|
|
@@ -426,7 +427,9 @@ export const mountedThree = () => {
|
|
|
model.renderer.toneMappingExposure = 1.8;
|
|
|
model.camera.position.set(100, 0, 1000);
|
|
|
// 根据模型类型判断要初始化哪些模型
|
|
|
- const dictCodes = getDictItemsByCode('windowModalType');
|
|
|
+ const store = useModelFileStore();
|
|
|
+ const storeData = store.getModelFileDataByKey('windows');
|
|
|
+ const dictCodes = storeData.length ? storeData.map((item) => ({ ...item, value: item.fileName })) : getDictItemsByCode('windowModalType');
|
|
|
for (let i = 0; i < dictCodes.length; i++) {
|
|
|
const dict = dictCodes[i];
|
|
|
|