浏览代码

Revert development change

Chris van Marle 4 年之前
父节点
当前提交
8a25ddd4bc
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      ui/src/App.vue

+ 6 - 2
ui/src/App.vue

@@ -234,8 +234,12 @@ export default {
   },
 
   mounted() {
-    this.deviceData = { id: '540985', hardware: 'ESP8266' };
-    this.loading = false;
+    fetch('/update/identity').then(async (response) => {
+      if (response.ok) {
+        this.deviceData = await response.json();
+        this.loading = false;
+      }
+    })
   },
 
 };