From 7ba34c4f3f3506f2a016476f901c7da8b8a0577c Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Thu, 12 Aug 2021 10:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E7=BB=B4=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6=E5=88=97=E8=BD=A6=E4=BD=8D=E7=BD=AE=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jl3ddrive/moveupdate/DrivingConnectNew.js | 13 +++++++++++++ src/views/jlmap3d/drive/jl3ddrive.vue | 2 +- static/workertest/driverWebWorker.js | 10 +++++++--- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js index c74e4166e..0947e75fa 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js @@ -107,6 +107,18 @@ export function Jl3dDrivingNew(mixers,updatemmi,sound,translation,routegroup,dri DeviceDestroy(data.body); return; } + + if(data.type == "Simulation_Reset"){ + if(data.body == true ){ + restartTrain(); + } + } + } + + function restartTrain(){ + for(let i=0;i