mirror of https://github.com/langgenius/dify.git
fix: Code editor throws dozen of errors (#28500)
This commit is contained in:
parent
2e0964e0b0
commit
9fed2dc065
|
|
@ -15,7 +15,8 @@ import { noop } from 'lodash-es'
|
|||
import { basePath } from '@/utils/var'
|
||||
|
||||
// load file from local instead of cdn https://github.com/suren-atoyan/monaco-react/issues/482
|
||||
loader.config({ paths: { vs: `${basePath}/vs` } })
|
||||
if (typeof window !== 'undefined')
|
||||
loader.config({ paths: { vs: `${window.location.origin}${basePath}/vs` } })
|
||||
|
||||
const CODE_EDITOR_LINE_HEIGHT = 18
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue