Browse Source

跳转页面默认跳转到顶部

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@7641 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
ed23bac9d0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/webapp/resources/js/index/app.js

+ 2 - 1
src/main/webapp/resources/js/index/app.js

@@ -1011,7 +1011,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		};
 	}]);
 	
-	app.controller('TodoCtrl', ['$scope', 'SnapshotService', function($scope, SnapshotService){
+	app.controller('TodoCtrl', ['$scope', 'SnapshotService', 'BaseService', function($scope, SnapshotService, BaseService){
+		BaseService.scrollBackToTop();
 		SnapshotService.getTodo(function(data){
 			$scope.todo = data;
 		});