Home > front end >  Click on the title according to the article details the function
Click on the title according to the article details the function

Time:04-30

I want to achieve is similar to the picture baidu, so click on the title, and then display the function of the corresponding content, interface returns a value of 1 for all are the article title, content and id
2 query interface to the contents of each article but needs interface 1 id as a parameter to display to the details page specific content,
I want to ask is, how to get the access to the id and as the details of the page to obtain the parameters of the (I am using the vue scaffolding + axios + element UI)
Family help thank you

CodePudding user response:

I am self-study at school, so I hope simple point

CodePudding user response:

Just like find information, routing parameters to carry jump can achieve the goal should be

CodePudding user response:

I suggest you still don't use framework, using native js or jq to make this function, understand the reoccupy framework

CodePudding user response:

Kit: & lt; The route - link: to="path +/id" & gt;
Routing table: path plus/: id
Jump to the components of: use this. $route. The params. Id to obtain corresponding id to request interface and then render a page

CodePudding user response:

The
reference 4 floor Proud lion response:
kit: & lt; The route - link: to="path +/id" & gt;
Routing table: path plus/: id
Jump to the components of: use this. $route. The params. Id to obtain corresponding id to request interface and then render a page

Thank you, can the
  •  Tags:  
  • Ajax
  • Related