fix: 将基础配置信息移出window
This commit is contained in:
@@ -3,5 +3,3 @@ const BASE_CONFIG = {
|
|||||||
version: '23.06',
|
version: '23.06',
|
||||||
apiVersion: 'v1'
|
apiVersion: 'v1'
|
||||||
}
|
}
|
||||||
|
|
||||||
window.BASE_CONFIG = BASE_CONFIG
|
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user