Vue details page how to get data according to the id sent from the list page

the list page jumps to the details page and sends the id together. How can I get the data from the detail page according to the id passed from the list page in the details page?

if you have a better way to ask for information, as long as you can jump from the list page to the details page and get the data of this details page.
list page

Mar.15,2021

well, wonder what this is. 0-0
clipboard.png

clipboard.png

axios Chinese documentation


you didn't get it


for loops through all data, retrieving your unique id

        var curList = [];
        var persons = $scope.bussinessList;
        for (var i = 0; i < persons.length; iPP) {
            var cur_person = persons[i];
            if (cur_person.id== id) {
                curList.push(cur_person)
            }
        }
        console.log(curList);
Menu