2023年10月10日 尝试修复接口报错的问题
This commit is contained in:
parent
4a8aa77aaa
commit
7c3d29107a
|
@ -18,6 +18,8 @@ import { useErrorLogStoreWithOut } from '/@/store/modules/errorLog';
|
|||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { joinTimestamp, formatRequestDate } from './helper';
|
||||
import { useUserStoreWithOut } from '/@/store/modules/user';
|
||||
|
||||
import { useSso } from '/@/hooks/web/useSso';
|
||||
const globSetting = useGlobSetting();
|
||||
const urlPrefix = globSetting.urlPrefix;
|
||||
const { createMessage, createErrorModal } = useMessage();
|
||||
|
@ -197,7 +199,8 @@ export const transform: AxiosTransform = {
|
|||
|
||||
if (!error?.response?.status) {//找不到返回值,也找不到状态码,则认为是重定向后跨域了,
|
||||
//window.location.href = error?.config?.url || window.location.href;//跳转不正常。。。
|
||||
window.location.href = window.location.href;
|
||||
//window.location.href = window.location.href;
|
||||
useSso().ssoLoginOut();
|
||||
}
|
||||
|
||||
const { t } = useI18n();
|
||||
|
|
Loading…
Reference in New Issue