|
|
@ -7,6 +7,8 @@ import { tansParams, blobValidate } from "@/utils/ruoyi";
|
|
|
|
import cache from '@/plugins/cache'
|
|
|
|
import cache from '@/plugins/cache'
|
|
|
|
import { saveAs } from 'file-saver'
|
|
|
|
import { saveAs } from 'file-saver'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import router from '@/router'
|
|
|
|
|
|
|
|
|
|
|
|
let downloadLoadingInstance;
|
|
|
|
let downloadLoadingInstance;
|
|
|
|
// 是否显示重新登录
|
|
|
|
// 是否显示重新登录
|
|
|
|
export let isRelogin = { show: false };
|
|
|
|
export let isRelogin = { show: false };
|
|
|
@ -87,7 +89,8 @@ service.interceptors.response.use(res => {
|
|
|
|
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
|
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
|
isRelogin.show = false;
|
|
|
|
isRelogin.show = false;
|
|
|
|
store.dispatch('LogOut').then(() => {
|
|
|
|
store.dispatch('LogOut').then(() => {
|
|
|
|
location.href = '/index';
|
|
|
|
// location.href = '/index';
|
|
|
|
|
|
|
|
router.replace('/login')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
isRelogin.show = false;
|
|
|
|
isRelogin.show = false;
|
|
|
|