Three.js solve a memory leak problem vue in the context of loss

 

Add to the above code in the jump page.

In the spa project, the jump page does not clearly webgl instance has been created, you need to manually clear.

Guess you like

Origin www.cnblogs.com/lichuankai/p/10944686.html