From bb90ab7c52e1a8ad722d14d3a7284ad12941920c Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Thu, 17 Aug 2023 13:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E9=95=BFwebsocekt=E5=BF=83=E8=B7=B3?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=9B=E6=8A=A5=E8=AD=A6=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=A1=A5=E5=85=85api=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/api/alarm/alarm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index ff6d27b..61b3f80 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,7 +11,7 @@ export default { return { // socket参数 socket: null, - timeout: 10 * 1000, // 45秒一次心跳 + timeout: 45 * 1000, // 45秒一次心跳 timeoutObj: null, // 心跳心跳倒计时 serverTimeoutObj: null, // 心跳倒计时 timeoutnum: null, // 断开 重连倒计时 diff --git a/src/api/alarm/alarm.js b/src/api/alarm/alarm.js index 7ee019e..1667493 100644 --- a/src/api/alarm/alarm.js +++ b/src/api/alarm/alarm.js @@ -2,7 +2,7 @@ import request from '@/router/axios'; export const getList = (current, size, params) => { return request({ - url: '/alarmInformation/list', + url: '/api/alarmInformation/list', method: 'get', params: { ...params,