Explorar o código

F 发布 修复选择的主机可能会出现无法取消关联的问题

雷二猛 %!s(int64=7) %!d(string=hai) anos
pai
achega
9c878d37c3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      spug_web/src/components/publish/Deploy.vue

+ 2 - 2
spug_web/src/components/publish/Deploy.vue

@@ -270,7 +270,7 @@
                 this.dialogLoading = true;
                 let host_ids = this.$refs['tree'].getCheckedKeys();
                 this.$http.post(`/api/deploy/apps/${this.app_id}/bind/hosts`, {
-                    ids: host_ids,
+                    ids: host_ids.filter(x => x),
                     env_id: this.env_id
                 }).then(() => {
                     this.fetchEnabledHosts();
@@ -537,4 +537,4 @@
             // this.fetchEnabledHosts()
         }
     }
-</script>
+</script>