he-tree
he-tree copied to clipboard
TypeError: Cannot set property '_heTreeWatermarkDisabled' of undefined
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
I guess because window is undefined in vue mounted hook.
Is there a quick fix or workaround suggested?
try create a global variable window={}