Using gantt in vue presents multiple initialization problems

Using gantt in vue caused multiple initialization problems. When I manually refreshed the page, I found that gantt would be initialized once and the number of times of initialization would be accumulated

Hello Jinhua,
If you switch to other tabs or pages in your application, you can try destroying the Gantt instance when switching to another page/tab and create a new Gantt instance when switching back. You can read about that approach in the following article:

Do you have a working Vue example for this issue?

Hello Peter,
Unfortunately, I don’t have a Vue demo. But if it helps, here is a simple Angular demo with that approach: