瀏覽代碼

фикс обновления

kpmy 7 年之前
父節點
當前提交
75edd6f434
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/root.js

+ 4 - 2
src/root.js

@@ -6,7 +6,7 @@ let string_similarity = require('string-similarity');
 
 
 require('../thirdparty/naturalSort');
 require('../thirdparty/naturalSort');
 
 
-require('angular').module('Ks').controller('RootController', function ($scope, $mdPanel) {
+require('angular').module('Ks').controller('RootController', function ($scope, $mdPanel, $timeout) {
     $scope._ = _;
     $scope._ = _;
 
 
     let tabCats = {
     let tabCats = {
@@ -26,7 +26,9 @@ require('angular').module('Ks').controller('RootController', function ($scope, $
     };
     };
 
 
     $scope.$watch('data', function () {
     $scope.$watch('data', function () {
-        setTimeout(getPage, 100);
+        $timeout(function () {
+            getPage()
+        }, 200);
     }, true);
     }, true);
 
 
     let getFilter = function () {
     let getFilter = function () {