|
|
@ -6,7 +6,7 @@ const reportUrl = ref(import.meta.env.VITE_REPORT_URL) |
|
|
|
const mode = ref(import.meta.env.MODE) |
|
|
|
// 获取baseUrl
|
|
|
|
export const getBaseUrl = () => { |
|
|
|
if(mode.value === 'production') { |
|
|
|
if(mode.value === 'prod') { |
|
|
|
return systemConfig.baseUrl |
|
|
|
} else { |
|
|
|
return baseUrl.value |
|
|
@ -14,7 +14,7 @@ export const getBaseUrl = () => { |
|
|
|
} |
|
|
|
// 获取uploadUrl
|
|
|
|
export const getUploadUrl = () => { |
|
|
|
if(mode.value === 'production') { |
|
|
|
if(mode.value === 'prod') { |
|
|
|
return systemConfig.uploadUrl |
|
|
|
} else { |
|
|
|
return uploadUrl.value |
|
|
@ -22,7 +22,7 @@ export const getUploadUrl = () => { |
|
|
|
} |
|
|
|
// 获取interfaceUrl
|
|
|
|
export const getInterfaceUrl = () => { |
|
|
|
if(mode.value === 'production') { |
|
|
|
if(mode.value === 'prod') { |
|
|
|
return systemConfig.interfaceUrl |
|
|
|
} else { |
|
|
|
return interfaceUrl.value |
|
|
@ -30,7 +30,7 @@ export const getInterfaceUrl = () => { |
|
|
|
} |
|
|
|
// 获取jmreportBaseUrl
|
|
|
|
export const getJmreportBaseUrl = () => { |
|
|
|
if(mode.value === 'production') { |
|
|
|
if(mode.value === 'prod') { |
|
|
|
return systemConfig.jmreportBaseUrl |
|
|
|
} else { |
|
|
|
return jmreportBaseUrl.value |
|
|
@ -38,7 +38,7 @@ export const getJmreportBaseUrl = () => { |
|
|
|
} |
|
|
|
// 获取reportUrl
|
|
|
|
export const getReportUrl = () => { |
|
|
|
if(mode.value === 'production') { |
|
|
|
if(mode.value === 'prod') { |
|
|
|
return systemConfig.reportUrl |
|
|
|
} else { |
|
|
|
return reportUrl.value |
|
|
|