From 16ef20e7d39ecc946f97bbf405c0325ef9f00f01 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 01 七月 2022 09:16:02 +0800
Subject: [PATCH] #
---
static/js/app.js | 6 ------
static/js/object/StaTask.js | 7 ++++++-
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/static/js/app.js b/static/js/app.js
index 508fc82..0f111c5 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -73,7 +73,6 @@
this.queryCrn();
this.crnMove();
this.querySta();
- this.staChange();
}
this.initScene = function () {
this.scene = new THREE.Scene();
@@ -375,11 +374,6 @@
}
}
}
- }
- }
- this.staChange = function () {
- for (let staTask of this.staTasks) {
- staTask.change();
}
}
diff --git a/static/js/object/StaTask.js b/static/js/object/StaTask.js
index 0a92b7d..4cc24b3 100644
--- a/static/js/object/StaTask.js
+++ b/static/js/object/StaTask.js
@@ -7,6 +7,7 @@
that.object = object;
that.no = 0;
+ that.isDel = false;
that.readyIn = false;
that.run = false;
that.loaded = 0;
@@ -26,11 +27,15 @@
if (!that.position && item) {
that.position = item.position;
}
+
+ if (!item) {
+ that.isDel = true;
+ }
}
init();
that.modify = function (staData) {
- if (that.no === 0) {
+ if (that.no === 0 && !that.isDel) {
return;
}
--
Gitblit v1.9.1