fix(envConfigModal): 修复复制命令功能无法复制转义的问题

fixbug
钟良源 3 weeks ago
parent 4681273ff0
commit 102543088e

@ -85,8 +85,8 @@ const EnvConfigModal: React.FC<EnvConfigModalProps> = ({
}; };
const handleCopyCommand = () => { const handleCopyCommand = () => {
const rawCommand = language.includes('Python') ? configData.pythonCommand : configData.javaCommand; // const rawCommand = language.includes('Python') ? configData.pythonCommand : configData.javaCommand;
const textToCopy = showEscaped ? rawCommand : rawCommand; const textToCopy = getDisplayCommand();
const success = copy(textToCopy); const success = copy(textToCopy);

Loading…
Cancel
Save