Ver código fonte

修复地区转化逻辑错误问题

hulh 8 anos atrás
pai
commit
831867e626

+ 3 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_deliveryRule_ctrl.js

@@ -475,8 +475,10 @@ define([ 'app/app' ], function(app) {
                     });
                 }
             });
+            var count = 0;
             angular.forEach(indexArray, function (index) {
-                resultArray.splice(index, 1);
+                resultArray.splice(index - count, 1);
+                count++;
             });
             return resultArray;
         };