Skip to content

Commit

Permalink
feat: agent重装优化
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 24032
  • Loading branch information
hyunfa authored and wyyalt committed Nov 21, 2024
1 parent d06a615 commit 847a5d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/views/agent/config/editTableConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export const config: ISetupHead[] = [
placeholder: window.i18n.t('请选择'),
manualProp: true,
handleValueChange(row) {
if (row.install_channel_id !== 'default' && row.bk_cloud_id === window.PROJECT_CONFIG.DEFAULT_CLOUD) {
row.ap_id = this.apList.find(item => item.id !== -1)?.id || '';
}
// if (row.install_channel_id !== 'default' && row.bk_cloud_id === window.PROJECT_CONFIG.DEFAULT_CLOUD) {
// row.ap_id = this.apList.find(item => item.id !== -1)?.id || '';
// }
},
getOptions(row) {
return row.bk_cloud_id || row.bk_cloud_id === 0
Expand Down Expand Up @@ -103,8 +103,8 @@ export const config: ISetupHead[] = [
disabled,
};
});
list.sort(p => (p.disabled ? 1 : -1));
return list;
// list.sort(p => (p.disabled ? 1 : -1));
return list.filter(item => !item.disabled || item.id === -1);
}
return this.apList.map(item => ({
...item,
Expand Down

0 comments on commit 847a5d7

Please sign in to comment.