Explorar o código

3dModeling UIAnchor.js 徐寅秋 commit at 2021-04-01

徐寅秋 %!s(int64=4) %!d(string=hai) anos
pai
achega
93667198f6
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      3dModeling/tjby14/UIAnchor.js

+ 8 - 0
3dModeling/tjby14/UIAnchor.js

@@ -184,3 +184,11 @@ function create_ui(deviceType, floorNum, deviceList) {
 }
 // 删除界面
 function destroy_ui() {
+    if (uis) {
+        for (var i = 0; i < uis.length; i++) {
+            uis[i].destroy();
+        }
+        uis = [];
+    }
+
+}