[removed].reload not working for Firefox and Chrome

前端 未结 8 541
灰色年华
灰色年华 2020-12-08 15:44

I want to change the user status on click of a Button, so all I am doing is, detecting the current status and changing, if needed.

But in this case the changes the s

8条回答
  •  悲&欢浪女
    2020-12-08 16:13

    I had this problem in AngularJS and in Firefox. (Reloading was fine in Chrome). By using setTimeout problem solved.

    setTimeout(function(){
      window.location.reload();
    });
    

提交回复
热议问题