|  | @@ -698,11 +698,8 @@ function initWebSocket() {
 | 
											
												
													
														|  |        //初始化weosocket
 |  |        //初始化weosocket
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |        // const wsuri = "ws://192.168.0.43:8087//websocket?projectId="+this.pid; ws://192.168.0.131/diswebsocket?projectId=5
 |  |        // const wsuri = "ws://192.168.0.43:8087//websocket?projectId="+this.pid; ws://192.168.0.131/diswebsocket?projectId=5
 | 
											
												
													
														|  | -      const wsurl =
 |  | 
 | 
											
												
													
														|  | -        "ws://" +
 |  | 
 | 
											
												
													
														|  | -        process.env.VUE_APP_BASE_websokt +
 |  | 
 | 
											
												
													
														|  | -        "/diswebsocket?projectId=" +'5'
 |  | 
 | 
											
												
													
														|  | -        // aid.value;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      import.meta.env.VITE_BASE_URL
 | 
											
												
													
														|  | 
 |  | +      const wsurl =import.meta.env.VITE_BASE_URL+aid.value
 | 
											
												
													
														|  |          websock = new WebSocket(wsurl);
 |  |          websock = new WebSocket(wsurl);
 | 
											
												
													
														|  |          websock.onopen = websocketonopen;
 |  |          websock.onopen = websocketonopen;
 | 
											
												
													
														|  |          websock.onmessage = websocketonmessage;
 |  |          websock.onmessage = websocketonmessage;
 | 
											
										
											
												
													
														|  | @@ -714,7 +711,6 @@ function initWebSocket() {
 | 
											
												
													
														|  |     const websocketonopen = (res) => {
 |  |     const websocketonopen = (res) => {
 | 
											
												
													
														|  |        console.log("WebSocket连接成功", res);
 |  |        console.log("WebSocket连接成功", res);
 | 
											
												
													
														|  |        start();
 |  |        start();
 | 
											
												
													
														|  | -      beginprocess();
 |  | 
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |      // Websoket接收消息事件
 |  |      // Websoket接收消息事件
 | 
											
												
													
														|  |      const websocketonmessage = (res) => {
 |  |      const websocketonmessage = (res) => {
 | 
											
										
											
												
													
														|  | @@ -779,10 +775,6 @@ function initWebSocket() {
 | 
											
												
													
														|  |          }, times.value.timeout);
 |  |          }, times.value.timeout);
 | 
											
												
													
														|  |        }, times.value.timeout);
 |  |        }, times.value.timeout);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | -   onMounted(()=>{
 |  | 
 | 
											
												
													
														|  | -    init();
 |  | 
 | 
											
												
													
														|  | -   //getdata();
 |  | 
 | 
											
												
													
														|  | -   })
 |  | 
 | 
											
												
													
														|  |         // 组件被销毁之前,清空 sock 对象
 |  |         // 组件被销毁之前,清空 sock 对象
 | 
											
												
													
														|  |     onBeforeUnmount(() => {
 |  |     onBeforeUnmount(() => {
 | 
											
												
													
														|  |        // 关闭连接
 |  |        // 关闭连接
 |