fix: 将基础配置信息移出window

This commit is contained in:
刘洪洪
2023-06-01 11:30:21 +08:00
parent ef9b32d2b4
commit 72ed204f3a
3 changed files with 5 additions and 7 deletions

View File

@@ -3,5 +3,3 @@ const BASE_CONFIG = {
version: '23.06', version: '23.06',
apiVersion: 'v1' apiVersion: 'v1'
} }
window.BASE_CONFIG = BASE_CONFIG

View File

@@ -35,9 +35,9 @@ export const api = {
// galaxyProxy // galaxyProxy
galaxyProxy: '/galaxy/setting', galaxyProxy: '/galaxy/setting',
// 知识库 // 知识库
knowledgeBase: window.BASE_CONFIG.apiVersion + '/knowledgeBase', knowledgeBase: BASE_CONFIG.apiVersion + '/knowledgeBase',
knowledgeBaseList: window.BASE_CONFIG.apiVersion + '/knowledgeBase/list', knowledgeBaseList: BASE_CONFIG.apiVersion + '/knowledgeBase/list',
knowledgeBaseEnable: window.BASE_CONFIG.apiVersion + '/knowledgeBase/status', knowledgeBaseEnable: BASE_CONFIG.apiVersion + '/knowledgeBase/status',
// 报告相关 // 报告相关
reportJob: '/report/job', reportJob: '/report/job',

View File

@@ -1157,8 +1157,8 @@ export default {
importedType, importedType,
revertImportedData, revertImportedData,
handleShowImportedData, handleShowImportedData,
baseUrl: window.BASE_CONFIG.baseUrl, baseUrl: BASE_CONFIG.baseUrl,
apiVersion: window.BASE_CONFIG.apiVersion, apiVersion: BASE_CONFIG.apiVersion,
fileList: ref([]), fileList: ref([]),
fileListBack: ref(), fileListBack: ref(),
uploadHeaders: { uploadHeaders: {