The routing configuration below
{
Path: 'list',
Name: 'SalesList'
Component: ()=& gt; Import (' @/views/business/sales/index '),
Meta: {title: 'sales order list, icon:' table '}
}
In the left side menu of "sales order list" menu item, after click to jump to http://localhost:9527/#/sales/list
Excuse me, if I want to click the menu item when combined with a number of parameters, such as http://localhost:9527/#/sales/list? Qd1=abc& Qd2=123 & amp; Qd3=456...
So I should deal with?
CodePudding user response:
You this a few parameters are fixed? If is fixed on the routing interceptors in it,
CodePudding user response:
The
refer to the original poster stand home early reply: routing configuration below { Path: 'list', Name: 'SalesList' Component: ()=& gt; Import (' @/views/business/sales/index '), Meta: {title: 'sales order list, icon:' table '} } In the left side menu of "sales order list" menu item, after click to jump to http://localhost:9527/#/sales/list Excuse me, if I want to click the menu item when combined with a number of parameters, such as http://localhost:9527/#/sales/list? Qd1=abc& Qd2=123 & amp; Qd3=456... So I should deal with? Routing dynamic parameters of ah! Path: 'list/: qd1/: qd2/: qd3' Then you jump links: the list/ABC/123/456, enclosing $route. Params. Qd1 this have to do is to get the value Can also add parameter name in the path, the path: 'list/qd1/: qd1 qd2/: qd2 qd3/: qd3' but the values are the same CodePudding user response:
Behind that, you jump link address should be: the list/qd1/ABC/qd2/123/qd3/456 CodePudding user response:
reference 1/f, Jane _ the reply: you this a few parameters are fixed? If is fixed in routing the interceptor, Parameter is not fixed, there can be multiple, see query business needs, When click the main menu with only a few fixed, and open the page in other parts of the project is not necessarily these parameters, Is this what to do?