Skip to content

'removeEventListener' causes error on chart page #1285

Closed
@LarchLiu

Description

@LarchLiu

bug重现路径(MBP chrome):
打开Charts下的任意chart,然后删除掉Cookie中token,再点击任意页面,此时就会有Error。

原因是在Charts下resize.js中的beforeDestroy通过document取sidebarElm然后removeEventListener,但是此时的document是跳转后的login页面,取不到sidebar导致错误。

同样的在Dashboard页面中的LineChart也有这个问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions