vue window.open() pass parameters

There are two ways to open a new page,

One is the tabbed type:

One is the functional programming style:
let routeData = this.$router.resolve({   path:'/edit',   query:{id: '000'} }); window.open(routeData.href,'_blank');



There is a problem with tag-based value passing. You can't get the parameters in the new page, so I tried to use the functional style and use it in the new page:
this.$route
can get the information in the route, including the parameters.

Guess you like

Origin blog.csdn.net/dzhi1931/article/details/113353383