From c0f0aeea566aba85a41e7c01ebe40009087f7370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Mon, 8 Jun 2026 14:20:21 +0800 Subject: [PATCH] mqtt --- .env.development | 2 +- .env.production | 2 +- src/api/index.ts | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index 1a95f71..7f97840 100644 --- a/.env.development +++ b/.env.development @@ -11,4 +11,4 @@ VITE_REQUEST_TIMEOUT = 10000 VITE_DEBUG = true # 交易mqtt -VITE_MQTT_TRANSACTION_HOST=wss://adminh5.apimcapital.top/mqtt \ No newline at end of file +VITE_MQTT_TRANSACTION_HOST=wss://adminapi.apimcapital.top/mqtt \ No newline at end of file diff --git a/.env.production b/.env.production index c2a2473..ff71095 100644 --- a/.env.production +++ b/.env.production @@ -11,4 +11,4 @@ VITE_REQUEST_TIMEOUT = 10000 VITE_DEBUG = false # 交易mqtt -VITE_MQTT_TRANSACTION_HOST=wss://adminh5.apimcapital.top/mqtt \ No newline at end of file +VITE_MQTT_TRANSACTION_HOST=wss://adminapi.apimcapital.top/mqtt \ No newline at end of file diff --git a/src/api/index.ts b/src/api/index.ts index 7e50de0..17e20d5 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -122,6 +122,12 @@ const responseInterceptor = (response: AxiosResponse }, 1000) break default: + ElNotification({ + message: data.msg, + type: 'error', + duration: 2000, + customClass: 'global-notification' + }) throw new Error(data.msg || '操作失败!') }