From 89a0edd8b0838d405261c06f7fd55426c421a4b7 Mon Sep 17 00:00:00 2001 From: baishun Date: Thu, 8 Jun 2023 18:03:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index dc4b9a9..6258ae1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -113,13 +113,15 @@ export default { }, created() { // this.initMsg() - // 用户登录状态有效检测 - setInterval(() => { - $axios.get("/apaas/system/v5/user/login/check"); - }, 15 * 1000); }, mounted() { // this.getSysOptions(); + // 用户登录状态有效检测 + if (this.userInfo) { + setInterval(() => { + $axios.get("/apaas/system/v5/user/login/check"); + }, 15 * 1000); + } }, methods: { openMsg(data) { -- 2.26.0