Browse Source

compmanage/js/controllers.js

zhuxc 7 years ago
parent
commit
5770f84b7e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      www/apps/compmanage/js/controllers.js

+ 3 - 0
www/apps/compmanage/js/controllers.js

@@ -24,6 +24,9 @@ starter.controller('CompConnectCtrl', function ($scope, $state, $ionicSlideBoxDe
             }, function (err) {
             }, function (err) {
                 alert("GetComp失败: " + JSON.stringify(err));
                 alert("GetComp失败: " + JSON.stringify(err));
             })
             })
+        } else {
+            $ionicSlideBoxDelegate.next();
+            $scope.activeIndex = $ionicSlideBoxDelegate.currentIndex();
         }
         }
     };
     };