| | |
| | | import axios from 'axios' |
| | | import { ElNotification , ElMessageBox, ElMessage, ElLoading } from 'element-plus' |
| | | import { getToken } from '@/utils/auth' |
| | | import {getToken, removeToken} from '@/utils/auth' |
| | | import errorCode from '@/utils/errorCode' |
| | | import { tansParams, blobValidate } from '@/utils/ruoyi' |
| | | import cache from '@/plugins/cache' |
| | |
| | | isRelogin.show = true; |
| | | ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { |
| | | isRelogin.show = false; |
| | | removeToken() |
| | | window.location.reload(); |
| | | // useUserStore().logOut().then(() => { |
| | | // location.href = '/index'; |
| | | // }) |