CodePudding user response:
Delay theAround 100 ms setTimeout
CodePudding user response:
I tried, whether the visualization methods of delay 1 s, or the setOption delay 1 s, are not, as long as open once, and then jump to another page, jump back, can't show the chart,CodePudding user response:
Excuse me, would you please tell me how to solve this problem, I just met the same situation, lazy loading, nexttick, timers are not solveCodePudding user response:
Before the routing load, is to get the data, in the routing exclusive guard hook function
Const router=new VueRouter ({
Routes: [
{
Path: '/foo,
Component: Foo,
BeforeEnter: (1) the to, from, next)=& gt; {
//get data
}
}
]
})
CodePudding user response: