liuchen864
5 months ago
68 changed files with 204 additions and 303 deletions
@ -1,43 +0,0 @@ |
|||
# wms海拉长春生产环境 |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=false |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='http://172.21.32.13/api' |
|||
|
|||
# 上传路径 |
|||
VITE_UPLOAD_URL='http://172.21.32.13/api/admin-api/infra/file/upload' |
|||
|
|||
# 接口前缀 |
|||
VITE_API_BASEPATH= |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=true |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=true |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=false |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=sfms3.0-ui |
|||
|
|||
# 自定义接口路径 |
|||
VITE_INTERFACE_URL='http://172.21.32.13:90/magic/web/index.html' |
|||
|
|||
# 积木报表请求路径 |
|||
VITE_JMREPORT_BASE_URL='http://172.21.32.13:90' |
|||
|
|||
# 租户配置 |
|||
VITE_TENANT='["长春"]' |
|||
|
|||
# 查看质检报告环境 |
|||
VITE_REPORT_URL = 'https://scp.faway-hella.com' |
@ -1,43 +0,0 @@ |
|||
# wms海拉长春测试环境 |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=false |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='http://172.21.32.14/api' |
|||
|
|||
# 上传路径 |
|||
VITE_UPLOAD_URL='http://172.21.32.14/api/admin-api/infra/file/upload' |
|||
|
|||
# 接口前缀 |
|||
VITE_API_BASEPATH= |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=true |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=true |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=false |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=sfms3.0-ui |
|||
|
|||
# 自定义接口路径 |
|||
VITE_INTERFACE_URL='http://172.21.32.14:90/magic/web/index.html' |
|||
|
|||
# 积木报表请求路径 |
|||
VITE_JMREPORT_BASE_URL='http://172.21.32.14:90' |
|||
|
|||
# 租户配置 |
|||
VITE_TENANT='["长春"]' |
|||
|
|||
# 查看质检报告环境 |
|||
VITE_REPORT_URL = 'https://scptest.faway-hella.com' |
@ -1,40 +0,0 @@ |
|||
# scp海拉长春测试环境 |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=false |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='https://scptest.faway-hella.com/api' |
|||
|
|||
# 上传路径 |
|||
VITE_UPLOAD_URL='https://scptest.faway-hella.com/api/admin-api/infra/file/upload' |
|||
|
|||
# 接口前缀 |
|||
VITE_API_BASEPATH= |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=true |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=true |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=false |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=sfms3.0-ui |
|||
|
|||
# 自定义接口路径 |
|||
VITE_INTERFACE_URL='https://scptest.faway-hella.com/magic/web/index.html' |
|||
|
|||
# 积木报表请求路径 |
|||
VITE_JMREPORT_BASE_URL='https://scptest.faway-hella.com' |
|||
|
|||
# 租户配置 |
|||
VITE_TENANT='["长春","成都"]' |
@ -1,44 +0,0 @@ |
|||
# wms海拉成都生产环境 |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=false |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='http://172.22.32.8/api' |
|||
|
|||
# 上传路径 |
|||
VITE_UPLOAD_URL='http://172.22.32.8/api/admin-api/infra/file/upload' |
|||
|
|||
# 接口前缀 |
|||
VITE_API_BASEPATH= |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=true |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=true |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=false |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=sfms3.0-ui |
|||
|
|||
# 自定义接口路径 |
|||
VITE_INTERFACE_URL='http://172.22.32.8:90/magic/web/index.html' |
|||
|
|||
# 积木报表请求路径 |
|||
VITE_JMREPORT_BASE_URL='http://172.22.32.8:90' |
|||
|
|||
|
|||
# 租户配置 |
|||
VITE_TENANT='["成都"]' |
|||
|
|||
# 查看质检报告环境 |
|||
VITE_REPORT_URL = 'https://scp.faway-hella.com' |
@ -1,43 +0,0 @@ |
|||
# wms海拉成都测试环境 |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=false |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='http://172.22.32.9/api' |
|||
|
|||
# 上传路径 |
|||
VITE_UPLOAD_URL='http://172.22.32.9/api/admin-api/infra/file/upload' |
|||
|
|||
# 接口前缀 |
|||
VITE_API_BASEPATH= |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=true |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=true |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=false |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=sfms3.0-ui |
|||
|
|||
# 自定义接口路径 |
|||
VITE_INTERFACE_URL='http://172.22.32.9:90/magic/web/index.html' |
|||
|
|||
# 积木报表请求路径 |
|||
VITE_JMREPORT_BASE_URL='http://172.22.32.9:90' |
|||
|
|||
# 租户配置 |
|||
VITE_TENANT='["成都"]' |
|||
|
|||
# 查看质检报告环境 |
|||
VITE_REPORT_URL = 'https://scptest.faway-hella.com' |
@ -0,0 +1,12 @@ |
|||
let systemConfig = { |
|||
// 请求路径
|
|||
baseUrl: 'http://172.22.32.8/api', |
|||
// 上传路径
|
|||
uploadUrl: 'http://172.22.32.8/api/admin-api/infra/file/upload', |
|||
// 自定义接口路径
|
|||
interfaceUrl: 'http://172.22.32.8:90/magic/web/index.html', |
|||
// 积木报表请求路径
|
|||
jmreportBaseUrl: 'http://172.22.32.8:90', |
|||
// 查看质检报告环境
|
|||
reportUrl: 'https://scp.faway-hella.com' |
|||
} |
@ -0,0 +1,46 @@ |
|||
const baseUrl = ref(import.meta.env.VITE_BASE_URL) |
|||
const uploadUrl = ref(import.meta.env.VITE_UPLOAD_URL) |
|||
const interfaceUrl = ref(import.meta.env.VITE_INTERFACE_URL) |
|||
const jmreportBaseUrl = ref(import.meta.env.VITE_JMREPORT_BASE_URL) |
|||
const reportUrl = ref(import.meta.env.VITE_REPORT_URL) |
|||
const mode = ref(import.meta.env.MODE) |
|||
// 获取baseUrl
|
|||
export const getBaseUrl = () => { |
|||
if(mode.value === 'production') { |
|||
return systemConfig.baseUrl |
|||
} else { |
|||
return baseUrl.value |
|||
} |
|||
} |
|||
// 获取uploadUrl
|
|||
export const getUploadUrl = () => { |
|||
if(mode.value === 'production') { |
|||
return systemConfig.uploadUrl |
|||
} else { |
|||
return uploadUrl.value |
|||
} |
|||
} |
|||
// 获取interfaceUrl
|
|||
export const getInterfaceUrl = () => { |
|||
if(mode.value === 'production') { |
|||
return systemConfig.interfaceUrl |
|||
} else { |
|||
return interfaceUrl.value |
|||
} |
|||
} |
|||
// 获取jmreportBaseUrl
|
|||
export const getJmreportBaseUrl = () => { |
|||
if(mode.value === 'production') { |
|||
return systemConfig.jmreportBaseUrl |
|||
} else { |
|||
return jmreportBaseUrl.value |
|||
} |
|||
} |
|||
// 获取reportUrl
|
|||
export const getReportUrl = () => { |
|||
if(mode.value === 'production') { |
|||
return systemConfig.reportUrl |
|||
} else { |
|||
return reportUrl.value |
|||
} |
|||
} |
Loading…
Reference in new issue