fix : add logs

This commit is contained in:
zeinab.ashrafi
2025-04-09 09:52:44 +03:30
parent 4f25abbf36
commit 24aa9fb7f2
5 changed files with 97 additions and 79 deletions
+6 -3
View File
@@ -112,9 +112,12 @@ export default {
try {
const result = await axios.get(urls.showItem(id));
if (result.status == 200) {
this.data = result.data.data;
this.generateBarcode(this.data.id);
this.MedicalCenter = this.data.user.medical_center.name;
this.data = result.data.data|{};
console.log(result,'result')
if(this.data){
this.generateBarcode(this.data.id);
this.MedicalCenter = this.data.user.medical_center.name;
}
}
} catch (error) {
console.error("Error loading data:", error);