From a751e547d67c4f8e2c6fddf958c1559f792515bd Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 27 六月 2025 16:11:50 +0800 Subject: [PATCH] 添加工作流 --- src/utils/request.js | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 4f0c381..54d202f 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -17,7 +17,7 @@ const service = axios.create({ //baseURL: '/jeecg-boot', baseURL: apiBaseUrl, // api base_url - timeout: 500000 // 璇锋眰瓒呮椂鏃堕棿 + timeout: 3600000 // 璇锋眰瓒呮椂鏃堕棿 }) const err = (error) => { @@ -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