this. $ router and this. difference of $ route

this $ router:. represents the global route object, which contains the attributes push (), can be implemented in any page jump routes  

this $ route:. represents the current route object, which contains the attribute name path query params, etc.

Guess you like

Origin www.cnblogs.com/doudou-123/p/12639671.html