Commit d13a04e5 by lepdou

config page jump to index page when appId not provided

parent 7170b83d
application_module.controller("ConfigBaseInfoController", application_module.controller("ConfigBaseInfoController",
['$rootScope', '$scope', '$location', 'toastr', 'EventManager', 'UserService', ['$rootScope', '$scope', '$window', '$location', 'toastr', 'EventManager', 'UserService',
'AppService', 'AppService',
'FavoriteService', 'FavoriteService',
'PermissionService', 'PermissionService',
'AppUtil', ConfigBaseInfoController]); 'AppUtil', ConfigBaseInfoController]);
function ConfigBaseInfoController($rootScope, $scope, $location, toastr, EventManager, UserService, AppService, function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr, EventManager, UserService, AppService,
FavoriteService, FavoriteService,
PermissionService, PermissionService,
AppUtil) { AppUtil) {
var appId = AppUtil.parseParams($location.$$url).appid; var appId = AppUtil.parseParams($location.$$url).appid;
if (!appId) {
$window.location.href = '/index.html';
}
initPage(); initPage();
function 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