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