From 84286a6769ddd3e1e1ce6dc093b6e6fcab631431 Mon Sep 17 00:00:00 2001 From: chenx <1366659369@qq.com> Date: Wed, 20 May 2026 11:29:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 +++++ jeecgboot-vue3/.env.development | 4 ++-- jeecgboot-vue3/.env.production | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0283a10..4022f85 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,15 @@ ## ide **/.idea +**/.project +**/.classpath +**/.factorypath +**/.settings/ *.iml rebel.xml ## backend **/target +**/bin/ **/logs ## front diff --git a/jeecgboot-vue3/.env.development b/jeecgboot-vue3/.env.development index a62e0f7..bcc2eaa 100644 --- a/jeecgboot-vue3/.env.development +++ b/jeecgboot-vue3/.env.development @@ -7,10 +7,10 @@ VITE_PUBLIC_PATH = / # 跨域代理:前缀需与 VITE_GLOB_API_URL 一致,且 rewrite 后路径需包含后端 context-path(/jeecg-boot) # 详见 build/vite/proxy.ts -VITE_PROXY = [["/jeecg-boot","http://localhost:8888/jeecg-boot"],["/upload","http://localhost:3300/upload"]] +VITE_PROXY = [["/jeecg-boot","http://localhost:8888"],["/upload","http://localhost:3300/upload"]] #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=http://localhost:8888/jeecg-boot +VITE_GLOB_DOMAIN_URL=http://localhost:8888 #后台接口父地址(必填),与 server.servlet.context-path 一致,避免仅去掉别名前缀后缺少 /jeecg-boot VITE_GLOB_API_URL=/jeecg-boot diff --git a/jeecgboot-vue3/.env.production b/jeecgboot-vue3/.env.production index 633d09e..a4ccda5 100644 --- a/jeecgboot-vue3/.env.production +++ b/jeecgboot-vue3/.env.production @@ -13,7 +13,7 @@ VITE_BUILD_COMPRESS = 'gzip' VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false #后台接口父地址(必填) -VITE_GLOB_API_URL=/jeecgboot +VITE_GLOB_API_URL=/jeecg-boot #后台接口全路径地址(必填) VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8888/jeecg-boot