Vue jumps from the list page to the corresponding details page by id

1. List page: Jump to the details page with an id on the list page

Details page: You can get the data by passing the id back to the background

 

 

2. Jump to the details page from the list page and change the title of the details page

 

List page: typeid with id and page title jumps to the details page

Details page: Bind the title in html, get the passed typeid, and then determine the typeid corresponding to the returned title.

 

Supplement: To get the data in the background, it is to access the server in the background (how to access? A: It is like how you access the website) and then when it defines the necessary parameters, it is the parameters that must be brought after the connection. The background data can be obtained, it is not necessary to follow the connection and it will not affect. Just like my second example, the TypeId on the back is not necessary, it can also be a refill.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324999775&siteId=291194637