From 8d301347c6020578e4f77f1531f7c93290c172a2 Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Tue, 17 Oct 2023 13:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8A=A5=E8=A1=A8url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +++ .env.production | 3 +++ .env.test | 7 +++++-- src/views/report/jmreport/index.vue | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) 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())