From 800c93602eebabae20383bef86dc1a498e9209f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Sat, 26 Jul 2025 17:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=96=B9=E6=B3=95=E4=B8=BAss?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 + .env.production | 16 +-- src/components/scExport/exportList.vue | 35 ++----- src/components/scExport/index.vue | 14 ++- src/components/scImport/index.vue | 4 + src/config/index.js | 2 + src/layout/index.vue | 7 +- src/scui.js | 2 + src/utils/sseService.js | 133 +++++++++++++++++++++++++ 9 files changed, 180 insertions(+), 36 deletions(-) create mode 100644 src/utils/sseService.js diff --git a/.env.development b/.env.development index 295b339..60744e9 100644 --- a/.env.development +++ b/.env.development @@ -13,6 +13,9 @@ VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1 VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss +# SSE地址 +VUE_APP_SSE_URL = https://dev.api.linkwing.com/sse/stream + # 本地端口 VUE_APP_PORT = 2801 diff --git a/.env.production b/.env.production index 6f8ae33..3198248 100644 --- a/.env.production +++ b/.env.production @@ -5,15 +5,15 @@ NODE_ENV = production VUE_APP_TITLE = 象纬云科 # 测试环境 - VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1 - VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1 - VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss - VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss +# VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1 +# VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1 +# VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss +# VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss # 线上环境 # 接口地址 # WS地址 -# VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1 -# VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1 -# VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss -# VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss + VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1 + VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1 + VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss + VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss diff --git a/src/components/scExport/exportList.vue b/src/components/scExport/exportList.vue index 7899374..6ff1a17 100644 --- a/src/components/scExport/exportList.vue +++ b/src/components/scExport/exportList.vue @@ -16,7 +16,11 @@
{{item.type_desc}}
-
{{item.msg}}
+
+ + {{item.msg}} + +
文件生成完成
@@ -24,27 +28,6 @@
- - - - - - - - - - - - - - - - - - - - -