xzw 4 năm trước cách đây
mục cha
commit
609b750ed4
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      js/main_2020_show.js

+ 6 - 5
js/main_2020_show.js

@@ -40,12 +40,13 @@ $.ajax({//设备类型列表
     contentType: "application/json",
     url: `/api/device/getType`,
     success: function (data) {
-    if (data.code === 0) { 
-        hardwareTypes = data.data 
-    } else {
-        console.error('设备类型列表获取失败')
+        if (data.code === 0) { 
+            hardwareTypes = data.data 
+        } else {
+            console.error('设备类型列表获取失败')
+        }
     }
-} 
+})