|
|
@@ -1,10 +1,10 @@ |
|
|
|
import { history } from 'umi'; |
|
|
|
import { fetchApi } from '@/utils/request'; |
|
|
|
import storage from '@/utils/storage'; |
|
|
|
import { errorReponse, firstCharToLowerCase, isReqSuccess } from '@/utils/tool'; |
|
|
|
import { propertyOf } from 'lodash'; |
|
|
|
import { errorReponse, isReqSuccess } from '@/utils/tool'; |
|
|
|
import system from './system'; |
|
|
|
import { DATA } from './API'; |
|
|
|
import { fileMng } from '@/utils/hooks'; |
|
|
|
|
|
|
|
export async function queryCurrent() { |
|
|
|
const accountId = storage.get('accountId'); |
|
|
@@ -77,6 +77,7 @@ export function logout(clearStorage = true) { |
|
|
|
if (clearStorage) { |
|
|
|
storage.clear(); |
|
|
|
} |
|
|
|
fileMng.clear(); |
|
|
|
system.logout(); |
|
|
|
// window.location.href = '/login'; |
|
|
|
history.replace('/login'); |
|
|
|