From 2d2854814b8571b3a7716c6f2dc06e099ce7cd71 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Fri, 5 Jun 2026 14:50:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=A7=E8=A1=8C=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- src/main.js | 5 +- src/views/inspection/runTask/index.vue | 200 ++++++++++++++++---- src/views/inspection/runTask/task-steps.vue | 23 ++- 6 files changed, 181 insertions(+), 53 deletions(-) diff --git a/.env.development b/.env.development index 08bbd6f..662a41e 100644 --- a/.env.development +++ b/.env.development @@ -8,5 +8,5 @@ VITE_APP_ENV = 'development' VITE_APP_BASE_API = '/dev-api' VITE_API_URL = http://192.168.28.10:13080 -VITE_WS_URL = ws://192.168.28.10:13080/ws +VITE_WS_URL = ws://192.168.0.201:13080/ws diff --git a/.env.production b/.env.production index 45f5456..dd9f27c 100644 --- a/.env.production +++ b/.env.production @@ -14,4 +14,4 @@ VITE_BUILD_COMPRESS = gzip VITE_NODE_RED_URL = 'http://10.148.108.59:13080' VITE_API_URL = http://192.168.28.10:13080 -VITE_WS_URL = ws://192.168.28.10:13080/ws +VITE_WS_URL = ws://192.168.0.201:13080/ws diff --git a/.env.staging b/.env.staging index 61d4957..66d8d56 100644 --- a/.env.staging +++ b/.env.staging @@ -10,4 +10,4 @@ VITE_APP_BASE_API = '/stage-api' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip VITE_API_URL = http://10.148.121.100:13080 -VITE_WS_URL = ws://10.148.121.100:13080/ws \ No newline at end of file +VITE_WS_URL = ws://192.168.0.201:13080/ws \ No newline at end of file diff --git a/src/main.js b/src/main.js index eb71c52..8be21ea 100644 --- a/src/main.js +++ b/src/main.js @@ -87,9 +87,8 @@ app.use(ElementPlus, { app.use(WebSocketPlugin, { - // url: import.meta.env.VITE_WS_URL, - url: 'ws://192.168.0.201:13080/ws', - // url: 'ws://10.148.209.5:13080/ws', + url: import.meta.env.VITE_WS_URL, + // url: 'ws://192.168.0.201:13080/ws', userId: 'your_user_id' }); diff --git a/src/views/inspection/runTask/index.vue b/src/views/inspection/runTask/index.vue index c64ab82..283a069 100644 --- a/src/views/inspection/runTask/index.vue +++ b/src/views/inspection/runTask/index.vue @@ -10,43 +10,55 @@