Browse Source

控制器用法错误

Administrator 7 năm trước cách đây
mục cha
commit
a3e42ed90d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/main/webapp/resources/js/index/app.js

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

@@ -24491,7 +24491,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
     /**
      * 树结构
      */
-    app.controller('treeController', function($scope, $location){
+    app.controller('treeController', ['$scope', '$location', function($scope, $location){
         $scope.roleList = [
             { "roleName" : "卖家中心(销售)", "roleId" : "role1", 'path': 'sale', level: 0, collapsed: true, "children" : [
                     { "roleName" : "商务管理", "roleId" : "role1-1", collapsed: true, "children" : [
@@ -24642,6 +24642,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 })
             }
         }, false);
-    })
+    }])
     return app;
 });