提交 57c0e019 编写于 作者: J Jason Song 提交者: GitHub

Merge pull request #510 from lepdou/adapt_appId_empty

config page jump to index page when appId not provided
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册