Skip to content

Commit

Permalink
feat: 2.0 Proxy 支持配置临时文件传输路径 (closed TencentBlueKing#1757)
Browse files Browse the repository at this point in the history
  • Loading branch information
GONGONGONG committed Aug 29, 2023
1 parent f28e949 commit 18cd19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions frontend/src/types/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface IAp extends IApParams {
ap_type: string
is_enabled: boolean
is_default: boolean
file_cache_dirs: string
// nginx_path: null | string
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,6 @@ export default class CloudManagerSetup extends Mixins(formLabelMixin, FilterIpMi
*/
private initTableData() {
const defaultAp = this.apList.find(item => item.is_default);
let dataPath = '';
if (defaultAp) {
const { linux = {} } = defaultAp.agent_config || {};
dataPath = linux.data_path;
}
const table = [];
const initRow = {
inner_ip: '',
Expand All @@ -259,7 +254,7 @@ export default class CloudManagerSetup extends Mixins(formLabelMixin, FilterIpMi
auth_type: '',
prove: '',
retention: -1,
data_path: dataPath,
data_path: defaultAp?.file_cache_dirs || '',
};
// 默认给两行数据
table.push({ ...initRow });
Expand Down

0 comments on commit 18cd19f

Please sign in to comment.