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);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3cd39-2bb99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3cd39-2bb99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?