修复系统更新源判断,回退 @monaco-editor/react

This commit is contained in:
whyour
2023-03-03 23:45:38 +08:00
parent 5c5b4f804e
commit 5bf08b76de
4 changed files with 14 additions and 12 deletions
+3 -2
View File
@@ -1,7 +1,6 @@
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';
import { loader } from '@monaco-editor/react';
import * as monaco from 'monaco-editor';
export function init(version: string) {
// sentry监控 init
@@ -27,7 +26,9 @@ export function init(version: string) {
// monaco 编辑器配置cdn和locale
loader.config({
monaco,
paths: {
vs: 'https://cdn.staticfile.org/monaco-editor/0.33.0/min/vs',
},
'vs/nls': {
availableLanguages: {
'*': 'zh-cn',