Change the connection method between visual.html and charts.html(used to be index html).
Fix the problem of page switch