The Vue A page introduces a packaged model component loaded with Threejs, which has CSS3dsprite text on the model. After rotating the model, it jumps to page B and then returns to page A. The Threejs model is still in the same position as when it left. Dragging the mouse, the text does not correspond to the model and does not follow the model anymore. May I ask how to jump back to page A and reload the rendering of Threejs components? Using v-if='flag 'at the component reference point on page A to switch the flag state does not work
CSS3dsprite must be created in some of your code?
It sounds like that code is not getting re-run when the model is reloaded?
Re entering the page, the model is still in the same position as when it left, and the text labels no longer follow the model, use ‘location.reload’ can resolve ,but it’s not good; I have no other way to handle it
Hello, linxi! If you share some code we can find ways to help you.
1 Like
below is my component , home page reference this component:
home page reference component
1 Like
I have found a way to resolve the problem ,in the component add this
1 Like