Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本周汇总页面报错,人选选择打开为空 #10

Closed
magicds opened this issue Apr 24, 2018 · 1 comment
Closed

本周汇总页面报错,人选选择打开为空 #10

magicds opened this issue Apr 24, 2018 · 1 comment

Comments

@magicds
Copy link
Owner

magicds commented Apr 24, 2018

image

@magicds
Copy link
Owner Author

magicds commented Apr 24, 2018

调试发现原因为:

      // 根据人员组织出来的小组可能存在空的,将空值移除
      // 如没有用户在编号为0的小组
      // 则原 groups 为 [empty, {}, ...]
      // 树控件将报错
      for (var i = 0; i < groups.length; i++) {
        if (!groups[i]) {
          groups.splice(i, 1);
          i--;
        }
      }

@magicds magicds changed the title 本周汇总页面报错 本周汇总页面报错,人选选择打开为空 Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant