code: function setAutoComplete(form, field) {
    var autoComplete = new AutoComplete({
      trigger: field,
      dataSource: getRoles
    }).render();
  
    form.before('destroy', function() {
      autoComplete.destroy();
    });
  }
docs: 使用 autocomplete