Commit 57c0e019 by Jason Song Committed by GitHub

Merge pull request #510 from lepdou/adapt_appId_empty

config page jump to index page when appId not provided
parents 3557d880 d13a04e5
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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment