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 || '操作失败!') }