mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 23:12:38 +08:00
fix: more accurate
This commit is contained in:
parent
651e9a529e
commit
9f1c8f2c17
@ -153,8 +153,8 @@ export const CodeBlockView: React.FC<Props> = memo(({ children, language, onSave
|
||||
setIsRunning(true)
|
||||
setExecutionResult(null)
|
||||
|
||||
const isPython = language === 'python'
|
||||
const isJavaScript = ['javascript', 'js', 'typescript', 'ts'].includes(language.toLowerCase())
|
||||
const isPython = ['python', 'py'].includes(language.toLowerCase())
|
||||
const isJavaScript = ['javascript', 'js'].includes(language.toLowerCase())
|
||||
|
||||
if (isPython) {
|
||||
pyodideService
|
||||
|
||||
Loading…
Reference in New Issue
Block a user