From 7c1cd5bca05c58b4216a70468390ace61bf215c4 Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Sat, 22 Jun 2024 13:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/systemParam.ts | 10 +++++----- src/views/infra/customInterface/index.vue | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/utils/systemParam.ts b/src/utils/systemParam.ts index f19339e36..a219bb5db 100644 --- a/src/utils/systemParam.ts +++ b/src/utils/systemParam.ts @@ -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 diff --git a/src/views/infra/customInterface/index.vue b/src/views/infra/customInterface/index.vue index afa8a20e8..404bf1ccf 100644 --- a/src/views/infra/customInterface/index.vue +++ b/src/views/infra/customInterface/index.vue @@ -2,9 +2,9 @@