Commit 329fb141 authored by 武广's avatar 武广

fix: 修改实例化的位置

parent 0d021097
...@@ -74,7 +74,6 @@ const refreshRequest = async (url, options) => { ...@@ -74,7 +74,6 @@ const refreshRequest = async (url, options) => {
}; };
// 判断是否从tob进入 // 判断是否从tob进入
const iframeBridgeModel = new IframeBridge();
const searchPrams = getUrlSearchParams(); const searchPrams = getUrlSearchParams();
const isTob = searchPrams.source === 'tob'; const isTob = searchPrams.source === 'tob';
/** /**
...@@ -131,6 +130,7 @@ request.interceptors.response.use(async (response, options) => { ...@@ -131,6 +130,7 @@ request.interceptors.response.use(async (response, options) => {
window.location.href = loginPath; window.location.href = loginPath;
} else { } else {
console.log('isTob 4011 :>> ', isTob, 4011); console.log('isTob 4011 :>> ', isTob, 4011);
const iframeBridgeModel = new IframeBridge();
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