diff --git a/spug_web/src/components/publish/Deploy.vue b/spug_web/src/components/publish/Deploy.vue index 829b60e..ae34ae5 100644 --- a/spug_web/src/components/publish/Deploy.vue +++ b/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() } } - \ No newline at end of file +