调整vue前端:切换为8091端口;调整接口地址适应新后端;完善蚕茧仪评分析中图片可能超出全屏的情况;调整设备远程控制模块地址;

This commit is contained in:
BBIT-Kai
2025-09-26 16:23:21 +08:00
parent 381469aff8
commit 019a4365ed
6 changed files with 17 additions and 14 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
# 端口号 # 端口号
VITE_PORT=8090 VITE_PORT=8091
VITE_BASE=/ VITE_BASE=/
# 接口地址 # 接口地址
VITE_GLOB_API_URL=http://localhost:8089/api VITE_GLOB_API_URL=http://localhost:8089/
VITE_GLOB_API_URL_PY=http://localhost:13011/api VITE_GLOB_API_URL_PY=http://localhost:13011/
# 是否开启 Nitro Mock服务,true 为开启,false 为关闭 # 是否开启 Nitro Mock服务,true 为开启,false 为关闭
VITE_NITRO_MOCK=false VITE_NITRO_MOCK=false
+2 -2
View File
@@ -1,8 +1,8 @@
VITE_BASE=/ VITE_BASE=/
# 接口地址 # 接口地址
VITE_GLOB_API_URL=http://s1.ronsunny.cn:8089/api VITE_GLOB_API_URL=http://s1.ronsunny.cn:8090/api
VITE_GLOB_API_URL_PY=http://s1.ronsunny.cn:13011/api VITE_GLOB_API_URL_PY=http://s1.ronsunny.cn:8090/ai
# 是否开启压缩,可以设置为 none, brotli, gzip # 是否开启压缩,可以设置为 none, brotli, gzip
VITE_COMPRESS=none VITE_COMPRESS=none
+6 -6
View File
@@ -158,10 +158,10 @@ onActivated(() => {
</script> </script>
<template> <template>
<div class="flex h-full w-full flex-col"> <div class="flex h-[90dvh] w-full flex-col">
<BaseModal /> <BaseModal />
<CreateYSATaskModal /> <CreateYSATaskModal />
<div class="flex h-full w-full bg-gray-50"> <div class="flex h-[90dvh] w-full bg-gray-50">
<!-- 左侧筛选 + 列表 --> <!-- 左侧筛选 + 列表 -->
<div class="flex w-64 flex-col border-r bg-white p-4"> <div class="flex w-64 flex-col border-r bg-white p-4">
<!-- 按钮组 --> <!-- 按钮组 -->
@@ -241,8 +241,8 @@ onActivated(() => {
> >
<img <img
:src="selectedItem?.image_pre" :src="selectedItem?.image_pre"
alt="左图" alt=""
class="object-contain" class="h-[30dvh] w-full object-contain"
/> />
</div> </div>
<!-- 右图 --> <!-- 右图 -->
@@ -251,8 +251,8 @@ onActivated(() => {
> >
<img <img
:src="selectedItem?.image_after" :src="selectedItem?.image_after"
alt="右图" alt=""
class="object-contain" class="h-[30dvh] w-full object-contain"
/> />
</div> </div>
</div> </div>
+4 -1
View File
@@ -126,7 +126,10 @@ const disconnectAll = async () => {
</template> </template>
<template #default> <template #default>
<Card class="ml-2 h-full"> <Card class="ml-2 h-full">
<iframe src="http://s1.ronsunny.cn:8088" class="h-full w-full"></iframe> <iframe
src="http://s1.ronsunny.cn:8090/remote"
class="h-full w-full"
></iframe>
</Card> </Card>
</template> </template>
</ColPage> </ColPage>
+1 -1
View File
@@ -9,6 +9,6 @@ COPY apps/web-antd/dist /usr/share/nginx/html
# 拷贝 nginx 配置 # 拷贝 nginx 配置
COPY scripts/deploy/nginx.conf /etc/nginx/nginx.conf COPY scripts/deploy/nginx.conf /etc/nginx/nginx.conf
EXPOSE 8090 #EXPOSE 8091 因为使用kong做网关 可以直接使用ce-vue:8091访问 所以这里可以不暴露给内网
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]
+1 -1
View File
@@ -47,7 +47,7 @@ http {
# gzip_vary on; # gzip_vary on;
server { server {
listen 8090; listen 8091;
server_name localhost; server_name localhost;
location / { location / {