liling 4 mesi fa
parent
commit
bb86bb8f33
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 1 1
      src/pages/components/In03.vue
  2. 3 3
      src/pages/main/index.vue

+ 1 - 1
src/pages/components/In03.vue

@@ -227,7 +227,7 @@ export default {
                 setTimeout(() => {  
                     DataFull.GetData();                  
                     init();
-                }, 1000);                
+                }, 500);
             }
         },{deep:true,immediate:true})
         watch(() => props.userTimeout, newVal=> {

+ 3 - 3
src/pages/main/index.vue

@@ -353,7 +353,8 @@ export default {
             await player.Native.Settings.set('specularIntensity', 'float', 0.64);//初始化高光强度
             await player.Native.Model.setModelVisible(currentTargetType.value,true);
             await player.Native.CameraAnimation.clearKeyFrame();
-            (async()=>{
+            isLoaded.value=true;
+            setTimeout(async() => {
                 var cf = "data://models/T_02.pr";
                 await PlayerUtils.call(Native.Model.loadModel, 'IN02', cf);
                 modelLoadState['IN02']=true;
@@ -362,8 +363,7 @@ export default {
                 await PlayerUtils.call(Native.Model.loadModel, 'IN03', cf);
                 modelLoadState['IN03']=true;
                 await player.Native.Model.setModelVisible('IN03',false);
-                isLoaded.value=true
-            })()
+            }, 500);
         }
         //后整
         async function loadIn05Model(Native){