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:
https://docs.dhtmlx.com/gantt/desktop__multiple_gantts.html

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:
https://files.dhtmlx.com/30d/f71045d1f3b551868dbf709440c3feba/angular9+different_instances_7.0.5_trial.zip