From 019a4365ed742cd6f0e76f4108efdce0bd946f11 Mon Sep 17 00:00:00 2001 From: BBIT-Kai <2911862937@qq.com> Date: Fri, 26 Sep 2025 16:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4vue=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=EF=BC=9A=E5=88=87=E6=8D=A2=E4=B8=BA8091=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=EF=BC=9B=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E9=80=82=E5=BA=94=E6=96=B0=E5=90=8E=E7=AB=AF=EF=BC=9B=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E8=9A=95=E8=8C=A7=E4=BB=AA=E8=AF=84=E5=88=86=E6=9E=90?= =?UTF-8?q?=E4=B8=AD=E5=9B=BE=E7=89=87=E5=8F=AF=E8=83=BD=E8=B6=85=E5=87=BA?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=9B=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E8=AE=BE=E5=A4=87=E8=BF=9C=E7=A8=8B=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=9C=B0=E5=9D=80=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/apps/web-antd/.env.development | 6 +++--- vue/apps/web-antd/.env.production | 4 ++-- vue/apps/web-antd/src/views/cv/sca/index.vue | 12 ++++++------ vue/apps/web-antd/src/views/remote/index.vue | 5 ++++- vue/scripts/deploy/Dockerfile | 2 +- vue/scripts/deploy/nginx.conf | 2 +- 6 files changed, 17 insertions(+), 14 deletions(-) diff --git a/vue/apps/web-antd/.env.development b/vue/apps/web-antd/.env.development index 43678fa..7227ff5 100644 --- a/vue/apps/web-antd/.env.development +++ b/vue/apps/web-antd/.env.development @@ -1,11 +1,11 @@ # 端口号 -VITE_PORT=8090 +VITE_PORT=8091 VITE_BASE=/ # 接口地址 -VITE_GLOB_API_URL=http://localhost:8089/api -VITE_GLOB_API_URL_PY=http://localhost:13011/api +VITE_GLOB_API_URL=http://localhost:8089/ +VITE_GLOB_API_URL_PY=http://localhost:13011/ # 是否开启 Nitro Mock服务,true 为开启,false 为关闭 VITE_NITRO_MOCK=false diff --git a/vue/apps/web-antd/.env.production b/vue/apps/web-antd/.env.production index 3499670..436f322 100644 --- a/vue/apps/web-antd/.env.production +++ b/vue/apps/web-antd/.env.production @@ -1,8 +1,8 @@ VITE_BASE=/ # 接口地址 -VITE_GLOB_API_URL=http://s1.ronsunny.cn:8089/api -VITE_GLOB_API_URL_PY=http://s1.ronsunny.cn:13011/api +VITE_GLOB_API_URL=http://s1.ronsunny.cn:8090/api +VITE_GLOB_API_URL_PY=http://s1.ronsunny.cn:8090/ai # 是否开启压缩,可以设置为 none, brotli, gzip VITE_COMPRESS=none diff --git a/vue/apps/web-antd/src/views/cv/sca/index.vue b/vue/apps/web-antd/src/views/cv/sca/index.vue index 506c09a..b567184 100644 --- a/vue/apps/web-antd/src/views/cv/sca/index.vue +++ b/vue/apps/web-antd/src/views/cv/sca/index.vue @@ -158,10 +158,10 @@ onActivated(() => { diff --git a/vue/scripts/deploy/Dockerfile b/vue/scripts/deploy/Dockerfile index 94953cf..8625f2b 100644 --- a/vue/scripts/deploy/Dockerfile +++ b/vue/scripts/deploy/Dockerfile @@ -9,6 +9,6 @@ COPY apps/web-antd/dist /usr/share/nginx/html # 拷贝 nginx 配置 COPY scripts/deploy/nginx.conf /etc/nginx/nginx.conf -EXPOSE 8090 +#EXPOSE 8091 因为使用kong做网关 可以直接使用ce-vue:8091访问 所以这里可以不暴露给内网 CMD ["nginx", "-g", "daemon off;"] diff --git a/vue/scripts/deploy/nginx.conf b/vue/scripts/deploy/nginx.conf index 29b4f4a..ecb9061 100644 --- a/vue/scripts/deploy/nginx.conf +++ b/vue/scripts/deploy/nginx.conf @@ -47,7 +47,7 @@ http { # gzip_vary on; server { - listen 8090; + listen 8091; server_name localhost; location / {