.then & .catch will only execute one, why the for is executed, the following code is not executed, and why the error in catch reports to undefined, I don"t understand
axios.post(url.logintools,this.userInfoFromData)
.then(response => {
console.log(response)
//
var permissionsChildren = new Array()
var permissionsParent = new Array()
for(var i = 0; i<=response.data.responseDataObject.permissionsAll.permissionsChildren.length; iPP){
permissionsChildren.push(response.data.responseDataObject.permissionsAll.permissionsChildren[i].permissionName)
}
console.log(this.permissionsChildren)//
window.localStorage.setItem("permissionsChildren",permissionsChildren);//
})
.catch(error => {
console.log(error);//permissionName is undefined
});