Commit efb70eeb authored by 武广's avatar 武广

fix: 修改日志

parent 3b2d28b7
...@@ -74,6 +74,7 @@ const refreshRequest = async (url, options) => { ...@@ -74,6 +74,7 @@ const refreshRequest = async (url, options) => {
}; };
// 判断是否从tob进入 // 判断是否从tob进入
const iframeBridgeModel = IframeBridge();
const searchPrams = getUrlSearchParams(); const searchPrams = getUrlSearchParams();
const isTob = searchPrams.source === 'tob'; const isTob = searchPrams.source === 'tob';
/** /**
...@@ -107,6 +108,7 @@ request.interceptors.response.use(async (response, options) => { ...@@ -107,6 +108,7 @@ request.interceptors.response.use(async (response, options) => {
return response; return response;
} }
const data = await response.clone().json(); const data = await response.clone().json();
console.log('response data :>> ', data);
if (data.code === 4033) { if (data.code === 4033) {
// TODO 该接口是否需要提示权限信息 // TODO 该接口是否需要提示权限信息
if (options.role) { if (options.role) {
...@@ -129,7 +131,7 @@ request.interceptors.response.use(async (response, options) => { ...@@ -129,7 +131,7 @@ request.interceptors.response.use(async (response, options) => {
if (!isTob) { if (!isTob) {
window.location.href = loginPath; window.location.href = loginPath;
} else { } else {
const iframeBridgeModel = IframeBridge(); console.log('isTob 4011 :>> ', isTob, 4011);
iframeBridgeModel.run({ event: 'toLogin' }); iframeBridgeModel.run({ event: 'toLogin' });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment