he-tree icon indicating copy to clipboard operation
he-tree copied to clipboard

TypeError: Cannot set property '_heTreeWatermarkDisabled' of undefined

Open sl-wxx opened this issue 1 year ago • 3 comments

I use he-tree with uniapp and it works well in web browser environment. But when compiled to apk, the following error occurs: TypeError: Cannot set property '_heTreeWatermarkDisabled' of undefined

sl-wxx avatar Apr 07 '24 13:04 sl-wxx

I guess because window is undefined in vue mounted hook.

phphe avatar Apr 07 '24 13:04 phphe

Is there a quick fix or workaround suggested?

sl-wxx avatar Apr 07 '24 14:04 sl-wxx

try create a global variable window={}

phphe avatar Apr 07 '24 14:04 phphe