luowei 2 anni fa
parent
commit
2f17fd1cf3
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/views/system/device/index.vue

+ 3 - 3
src/views/system/device/index.vue

@@ -476,12 +476,12 @@ export default {
       const id = row.id || this.ids
       getDevice(id).then(response => {
         this.form = response.data;
+     this.devices=response.devices;
+     this.hostList=response.hostList;
         this.open = true;
         this.title = "编辑";
       });
-      listDevice().then(response => {
-        this.hostList = response.rows;
-      })
+      
     },
     /** 提交按钮 */
     submitForm() {