ソースを参照

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

zhulu 1 年間 前
コミット
17db289830
1 ファイル変更2 行追加1 行削除
  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;