mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 14:59:27 +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)
|
setIsRunning(true)
|
||||||
setExecutionResult(null)
|
setExecutionResult(null)
|
||||||
|
|
||||||
const isPython = language === 'python'
|
const isPython = ['python', 'py'].includes(language.toLowerCase())
|
||||||
const isJavaScript = ['javascript', 'js', 'typescript', 'ts'].includes(language.toLowerCase())
|
const isJavaScript = ['javascript', 'js'].includes(language.toLowerCase())
|
||||||
|
|
||||||
if (isPython) {
|
if (isPython) {
|
||||||
pyodideService
|
pyodideService
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user