|
|
@@ -52,7 +52,7 @@ service.interceptors.response.use(
|
|
|
if (window.__POWERED_BY_QIANKUN__) {
|
|
|
console.log('主应用的 window 对象:', window.parent);
|
|
|
if (window.parentWindow) {
|
|
|
- window.parentWindow.businessstatus = error;
|
|
|
+ window.parentWindow.businessstatus = res;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -80,12 +80,12 @@ service.interceptors.response.use(
|
|
|
return res;
|
|
|
},
|
|
|
(error) => {
|
|
|
- if (window.__POWERED_BY_QIANKUN__) {
|
|
|
- console.log('主应用的 window 对象:', window.parent);
|
|
|
- if (window.parentWindow) {
|
|
|
- window.parentWindow.businessstatus = error;
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (window.__POWERED_BY_QIANKUN__) {
|
|
|
+ // console.log('主应用的 window 对象:', window.parent);
|
|
|
+ // if (window.parentWindow) {
|
|
|
+ // window.parentWindow.businessstatus = error;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
// 登录过期处理
|
|
|
if (error?.response?.status === 401) {
|
|
|
const currentPath = router.currentRoute.path;
|