fix: cluster apis

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent f04f1f828f
commit 632f206228
34 changed files with 578 additions and 329 deletions
@@ -47,6 +47,7 @@ const AddWorker: React.FC<ViewModalProps> = (props) => {
return commandCode?.registerWorker({
server: registrationInfo.server_url || origin,
tag: tag,
image: registrationInfo.image,
token: registrationInfo.token || '${token}',
workerip: '${workerip}'
});
@@ -10,6 +10,7 @@ import React, { useEffect, useState } from 'react';
import {
WORKERS_API,
deleteWorker,
downloadWorkerPrivateKey,
queryWorkersList,
updateWorker
} from '../apis';
@@ -144,6 +145,9 @@ const Workers: React.FC = () => {
if (val === 'details') {
handleViewDetail(record);
}
if (val === 'download_ssh_key') {
downloadWorkerPrivateKey(record.id);
}
});
const renderEmpty = (type?: string) => {