但是当我在这里使用$location.path('dashboard')时,浏览器的URL会改变,但该页面不是loaded.when,而是使用ctrl+R刷新页面,或者单击浏览器的刷新图标,然后加载相应的页面//Proceed to load the dashboard for the user
$location.path
loggedIn) {//when user is not logged in
if ($location.path() == "/participant/signup" || $location.path() == "/researcher/signup" || $location.path() == "/participant/login" || $location.pa