Skip to content

Commit

Permalink
Merge pull request apolloconfig#510 from lepdou/adapt_appId_empty
Browse files Browse the repository at this point in the history
config page jump to index page when appId not provided
  • Loading branch information
nobodyiam authored Jan 9, 2017
2 parents 3557d88 + d13a04e commit 57c0e01
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
application_module.controller("ConfigBaseInfoController",
['$rootScope', '$scope', '$location', 'toastr', 'EventManager', 'UserService',
['$rootScope', '$scope', '$window', '$location', 'toastr', 'EventManager', 'UserService',
'AppService',
'FavoriteService',
'PermissionService',
'AppUtil', ConfigBaseInfoController]);

function ConfigBaseInfoController($rootScope, $scope, $location, toastr, EventManager, UserService, AppService,
function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr, EventManager, UserService, AppService,
FavoriteService,
PermissionService,
AppUtil) {

var appId = AppUtil.parseParams($location.$$url).appid;

if (!appId) {
$window.location.href = '/index.html';
}

initPage();

function initPage() {
Expand Down

0 comments on commit 57c0e01

Please sign in to comment.