Skip to content

customHide参数的判断时机可以适当提前 #20

Description

@nice-wwming

我认为传递了customHide参数通常是不需要生成vconsole的,也就是不调用new VConsole,而不是通过使用vConsole.destroy()去销毁
当前vconsole使用destory会造成后续报错
Uncaught TypeError: Cannot read properties of undefined (reading 'update')
at u2 (vconsole.min.js:10:91405)
at e2._flushLogs (vconsole.min.js:10:91641)
at vconsole.min.js:10:91147

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions