|  | @@ -35,6 +35,9 @@ const props = defineProps({
 | 
	
		
			
				|  |  |      type: String,
 | 
	
		
			
				|  |  |      // required: true,
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  htmldialogshow:{
 | 
	
		
			
				|  |  | +    type:Boolean
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  onMounted(() => {  
 | 
	
		
			
				|  |  |        window.addEventListener("load", function () {
 | 
	
	
		
			
				|  | @@ -107,13 +110,20 @@ onMounted(() => {
 | 
	
		
			
				|  |  |        script.onload = () => {
 | 
	
		
			
				|  |  |          createUnityInstance(canvas, config, (progress) => {
 | 
	
		
			
				|  |  |            progressBarFull.style.width = 100 * progress + "%";
 | 
	
		
			
				|  |  | +          console.log(     progressBarFull.style.width);
 | 
	
		
			
				|  |  |          }).then((unityInstance) => {
 | 
	
		
			
				|  |  |            loadingBar.style.display = "none";
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +           setTimeout(function(){
 | 
	
		
			
				|  |  | +            changefunc();
 | 
	
		
			
				|  |  | +          },100)
 | 
	
		
			
				|  |  | +       
 | 
	
		
			
				|  |  |          }).catch((message) => {
 | 
	
		
			
				|  |  |            alert(message);
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |        document.body.appendChild(script);
 | 
	
		
			
				|  |  | +    
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -175,7 +185,22 @@ function changeCamera(lv){
 | 
	
		
			
				|  |  |    console.log(lv)
 | 
	
		
			
				|  |  |    window.postMessage('changeCamera:'+lv);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +//初始化
 | 
	
		
			
				|  |  | +function changefunc(){
 | 
	
		
			
				|  |  | +  console.log('11111111'+'88888888')
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +  if(props.classradio=='Water'){
 | 
	
		
			
				|  |  | +      changeCamera(props.neiw)
 | 
	
		
			
				|  |  | +      changeWater(props.water)
 | 
	
		
			
				|  |  | +      console.log(props.neiw,props.water);
 | 
	
		
			
				|  |  | +    }else if(props.classradio=='Fire'){
 | 
	
		
			
				|  |  | +      changeCamera(props.neiw)
 | 
	
		
			
				|  |  | +      changeFire(props.fire)
 | 
	
		
			
				|  |  | +    }else if(props.classradio=='Gass'){
 | 
	
		
			
				|  |  | +      changeCamera(props.neiw)
 | 
	
		
			
				|  |  | +      changeGass(props.fire)
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  watch(
 | 
	
		
			
				|  |  |    () => [props.neiw,props.water,props.fire],
 | 
	
		
			
				|  |  |    (newVal, oldVal) => {
 | 
	
	
		
			
				|  | @@ -187,6 +212,7 @@ watch(
 | 
	
		
			
				|  |  |      }else if(props.classradio=='Fire'){
 | 
	
		
			
				|  |  |        changeCamera(newVal[0])
 | 
	
		
			
				|  |  |        changeFire(newVal[2])
 | 
	
		
			
				|  |  | +      console.log(11121+"火灾")
 | 
	
		
			
				|  |  |      }else if(props.classradio=='Gass'){
 | 
	
		
			
				|  |  |        changeCamera(newVal[0])
 | 
	
		
			
				|  |  |        console.log("这是我的温度"+newVal[2])
 |