Pārlūkot izejas kodu

compmanage/js/controllers.js

zhuxc 7 gadi atpakaļ
vecāks
revīzija
5770f84b7e
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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) {
                 alert("GetComp失败: " + JSON.stringify(err));
             })
+        } else {
+            $ionicSlideBoxDelegate.next();
+            $scope.activeIndex = $ionicSlideBoxDelegate.currentIndex();
         }
     };