diff --git a/.env.development b/.env.development index 17b3bbde2..78976cddd 100644 --- a/.env.development +++ b/.env.development @@ -32,3 +32,6 @@ VITE_OUT_DIR=dist # 自定义接口路径 VITE_INTERFACE_URL='http://localhost:12080/magic/web/index.html' + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://localhost:12080' \ No newline at end of file diff --git a/.env.production b/.env.production index 9937520a0..8e25d2385 100644 --- a/.env.production +++ b/.env.production @@ -29,3 +29,6 @@ VITE_BASE_PATH=/ # 输出路径 VITE_OUT_DIR=dist-pro + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25110' diff --git a/.env.test b/.env.test index 3d5028e29..84edcdfe7 100644 --- a/.env.test +++ b/.env.test @@ -4,10 +4,10 @@ NODE_ENV=test VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://dev.ccwin-in.com:25110' +VITE_BASE_URL='http://dev.ccwin-in.com:25100/api' # 上传路径 -VITE_UPLOAD_URL='http://dev.ccwin-in.com:25110/admin-api/infra/file/upload' +VITE_UPLOAD_URL='http://dev.ccwin-in.com:25100/api/admin-api/infra/file/upload' # 接口前缀 VITE_API_BASEPATH= @@ -32,3 +32,6 @@ VITE_OUT_DIR=dist-test # 自定义接口路径 VITE_INTERFACE_URL='http://dev.ccwin-in.com:25110/magic/web/index.html' + +# 积木报表请求路径 +VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25110' diff --git a/src/views/report/jmreport/index.vue b/src/views/report/jmreport/index.vue index 0bac35192..e05bb51f5 100644 --- a/src/views/report/jmreport/index.vue +++ b/src/views/report/jmreport/index.vue @@ -8,6 +8,6 @@ import { getAccessToken } from '@/utils/auth' defineOptions({ name: 'JimuReport' }) -const BASE_URL = import.meta.env.VITE_BASE_URL +const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL const src = ref(BASE_URL + '/jmreport/list?token=' + getAccessToken())