fix: install command is incorrect after switching 310p

main
jialin 1 year ago
parent c98667245e
commit 50febc342c

@ -33,21 +33,15 @@ const AddWorker: React.FC<ViewModalProps> = (props) => {
let commandCode = addWorkerGuide[activeKey];
if (npuKey === 'npu310p') {
if (npuKey === 'npu310p' && activeKey === 'npu') {
commandCode = addWorkerGuide[npuKey];
}
if (activeKey === 'cuda') {
return commandCode?.registerWorker({
server: origin,
tag: version,
token: '${token}',
workerip: '${workerip}'
});
}
const tag = activeKey === 'cuda' ? version : `${version}-${activeKey}`;
return commandCode?.registerWorker({
server: origin,
tag: `${version}-${activeKey}`,
tag: tag,
token: '${token}',
workerip: '${workerip}'
});

Loading…
Cancel
Save