From 74d989e480e28806d5e407bc11ef84885c51f4ff Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期四, 06 三月 2025 10:07:43 +0800 Subject: [PATCH] art: 设备台账-所有设备 模板下载,点击无反应, 查询模板数据为空,增加提示 --- src/utils/request.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 4f0c381..26a7423 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -79,7 +79,8 @@ if (token) { store.dispatch('Logout').then(() => { setTimeout(() => { - window.location.reload() + router.push({ path: '/user/login' }); + // window.location.reload() }, 1500) }) } @@ -169,7 +170,10 @@ onOk: () => { store.dispatch('Logout').then(() => { Vue.ls.remove(ACCESS_TOKEN) - window.location.reload() + setTimeout(() => { + router.push({ path: '/user/login' }); + // window.location.reload() + }, 1500) }) } }) -- Gitblit v1.9.3