Angularjs about the problem that $state.go did not jump after the page was refreshed.

recently, the development project encountered a problem, that is, the angulajs did not jump $state.go after the page refresh. The code is as follows

html:

      <a href="" ng-bind="username" style="position:relative;"></a>
      <a href="" ng-click="logout()" style="position:relative;"><span ng-if="!noUser"></span><span ng-if="noUser"></span> </a>

js:

$scope.logout = function () {

  $scope.username="";
  $scope.password="";
  delete $localStorage.username;
  delete $localStorage.password;
  $state.go("loginNew");
};

routing:

.config (function ($stateProvider) {

$stateProvider
  .state("login", {
    url: "/login",
    abstract:true,

    templateUrl: "app/main/account/loginNew.html"
  })
  .state("loginNew", {
    url: "/loginNew",
    templateUrl: "app/main/account/login.html"
  })

})

after logging in, the logout method can be used normally, and the click will jump directly to the landing page, but when the page is refreshed, when you click to exit for the first time, you only delete the cache and do not jump to the landing page. When you click again, you jump to the landing page. I hope God can point out what the problem is and how to solve it.

Mar.02,2021
A conflict occurred with the

program.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36489-2c00b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36489-2c00b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?