diff --git a/src/widgets/sub-layout/index.tsx b/src/widgets/sub-layout/index.tsx index 3ea3d0e..dbe5c7c 100644 --- a/src/widgets/sub-layout/index.tsx +++ b/src/widgets/sub-layout/index.tsx @@ -121,6 +121,8 @@ export const SubLayout = () => { setLoginSuccess(true); setHeaderNavigationKey(headerNavigationKey + 1); + }).catch((e: any) => { + console.error(e); }); }; @@ -131,9 +133,10 @@ export const SubLayout = () => { }; businessProperty(params).then((rs: BusinessPropertyResponse) => { useStore.getState().UserStore.setBusinessInfo(rs); + }).catch((e: any) => { + console.error(e); }); } - }; const callSortcutDefault = () => { @@ -150,6 +153,8 @@ export const SubLayout = () => { })); useStore.getState().UserStore.setUserFavorite(modifiedShortcuts); + }).catch((e: any) => { + console.error(e); }); } }; @@ -199,6 +204,8 @@ export const SubLayout = () => { callSortcutDefault(); } } + }).catch((e: any) => { + console.error(e); }); } @@ -226,6 +233,8 @@ export const SubLayout = () => { if(!!emails[0]){ useStore.getState().UserStore.setEmail(emails[0]); } + }).catch((e: any) => { + console.error(e); }); } @@ -282,6 +291,8 @@ export const SubLayout = () => { code1Filter: code1Filter }); } + }).catch((e: any) => { + console.error(e); }); };