From 4b3467e05cb0e2b68bc3e8ef08827e9e874562c8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期一, 13 十二月 2021 10:43:39 +0800
Subject: [PATCH] #

---
 static/js/app.js |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 9b020f1..6af6ee1 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -14,6 +14,7 @@
 		this.firstTime = 1;
 		this.stats = null;
 		this.goodTypes=[];//瀛樺偍鎵�鏈夌殑搴撲綅绫诲瀷
+		this.wrkNo = 0;
 
 		this.start = function () {
 			this.initMain();
@@ -37,7 +38,7 @@
 			this.stats.begin();
 			this.renderer.render(this.scene, this.camera);
 			this.stats.end();
-			this.modelMove();
+			// this.modelMove();
 		}
 		this.initScene = function () {
 			this.scene = new THREE.Scene();
@@ -263,7 +264,9 @@
 		this.queryTask = function () {
 			if (this.firstTime === 1) {
 				queryTaskCurrent();
-				console.log(TaskData);
+				if (this.wrkNo !== TaskData.wrkNo) {
+					this.wrkNo = TaskData.wrkNo;
+				}
 			}
 		}
 		this.getExistedGoodType=function(state){
@@ -351,7 +354,9 @@
 				});
 		}
 		this.modelMove = function () {
-
+			// console.log(1)
+			let crnBody = getArrVal(this.objects, "name", "1-body");
+			console.log(crnBody.position)
 		}
 	},
 

--
Gitblit v1.9.1