修改获取配置文件接口,初始化系统配置

This commit is contained in:
whyour
2024-01-18 13:51:06 +08:00
parent 1a94a660a5
commit 8283f62db2
9 changed files with 30 additions and 21 deletions
+1
View File
@@ -3,6 +3,7 @@ const baseUrl = window.__ENV__QlBaseUrl || '/';
export default {
siteName: intl.get('青龙'),
baseUrl,
apiPrefix: `${baseUrl}api/`,
authKey: 'token',
+2 -1
View File
@@ -1,5 +1,6 @@
import * as Sentry from '@sentry/react';
import { loader } from '@monaco-editor/react';
import config from './config';
export function init(version: string) {
// sentry监控 init
@@ -26,7 +27,7 @@ export function init(version: string) {
// monaco 编辑器配置cdn和locale
loader.config({
paths: {
vs: '/monaco-editor/min/vs',
vs: `${config.baseUrl}monaco-editor/min/vs`,
},
'vs/nls': {
availableLanguages: {