Работает пока

rc
DenisN 2025-03-28 16:35:22 -04:00
parent fe13f233aa
commit 00b60fa455
2 changed files with 5 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -61,7 +61,7 @@ export class MufapiService {
}).catch((error)=>{ }).catch((error)=>{
this.token = error; this.token = error;
}); });
// Получаем и радуемся
return this.token; return this.token;
} }
//Получение данных для формирования меню в МУФ //Получение данных для формирования меню в МУФ
@ -74,18 +74,16 @@ export class MufapiService {
name: string; name: string;
}, },
}; };
//А вот эта Коза пока не зашла((())) let resp : string = '';
let resp : VksMenu [];
await axios.post(path, body, headers).then((response)=>{ await axios.post(path, body, headers).then((response)=>{
resp = response.data; resp = response.data;
//this.token = auth.access_token; //this.token = auth.access_token;
console.log(resp.id); console.log(resp);
console.log(resp.name);
}).catch((error)=>{ }).catch((error)=>{
this.token = error; this.token = error;
}); });
return "Null"; return resp;
} }
} }