Why can't the array obtained by axios be rendered to the web page

Picture description

the returned data has been obtained, but it cannot be rendered to the web page. Ask the gods for help.

axios.post (apiurl,data, {headers: {"auth":sccesstoken}})

        .then(res =>{
            //axios.defaults.headers.common["auth"] = sccesstoken
             console.log(res.data[0].data)
             console.log(res.data[0].data[0].CompanyName);
             this.self.sites = res.data[0].data;
            })
        .catch(function (error) {
            //
        }); 
Mar.11,2022
The

code is incomplete. If you want to see how it is written in html and data () {},


the data is the data, and the page is the page. You need to manually process the data if you want to render the data to the page. If you use angular or the vue framework will automatically handle
, but in angular1.x you need to manually refresh $scope.$apply when you use axios to obtain data, and there is also a manual refresh method in vue


has been solved, thank you for your ideas, thank you very much

Menu