From e1e7e01e40f3de2bd40d2de974a876f4f29abda2 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期二, 22 七月 2025 14:54: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