Authored by 姜枫

fix bug

@@ -398,6 +398,10 @@ const p = { @@ -398,6 +398,10 @@ const p = {
398 } 398 }
399 399
400 const hosts = project.deploy[env].target; 400 const hosts = project.deploy[env].target;
  401 +
  402 + if (typeof hosts === 'string') {
  403 + hosts = [hosts];
  404 + }
401 hosts.forEach((host) => { 405 hosts.forEach((host) => {
402 var obj = { 406 var obj = {
403 'total': 0, 407 'total': 0,