Explorar el Código

查询条件为空时 不发起请求

zhulu hace 1 año
padre
commit
17db289830
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/system/device/index.vue

+ 2 - 1
src/views/system/device/index.vue

@@ -584,7 +584,8 @@ export default {
       this.changeSelect(data);
       this.handleQuery();
     },
-    changeSelect(val) {
+    changeSelect(val) {      
+      if(!val || !val.id) return;
       getHostByOrgId(val).then((response) => {
         this.form.hostId = null;
         this.hostList = response.data;