作者:手机用户2602890925 | 来源:互联网 | 2023-05-17 17:35
Iamusingangular4.x我正在使用角度4.x.Indevelopmentenvironment,ifsomeonerestartstheserverorif
I am using angular 4.x
我正在使用角度4.x.
In development environment, if someone restarts the server or if user logs out from another tab and then the user keeps trying to perform some action from another tab, he/she keeps seeing the error on page.
在开发环境中,如果有人重新启动服务器,或者如果用户从另一个选项卡注销,然后用户继续尝试从另一个选项卡执行某些操作,他/她将继续在页面上看到错误。
I want centralize solution using Angular's HTTP service so that if a user is trying to perform any operation and an error due to session expiration occurs, we want to refresh the page.
我想使用Angular的HTTP服务集中解决方案,这样如果用户尝试执行任何操作并且由于会话过期而发生错误,我们想要刷新页面。
1 个解决方案