From 19ba190ced1bc9d42f741f99a52ab1271bdf478a Mon Sep 17 00:00:00 2001 From: p11037 Date: Thu, 30 Nov 2023 00:07:02 +0700 Subject: [PATCH] show each data for favorites page --- src/components/DestinationInfoCard.vue | 6 +- src/views/Favorite.vue | 113 ++++++++++++------------- 2 files changed, 57 insertions(+), 62 deletions(-) diff --git a/src/components/DestinationInfoCard.vue b/src/components/DestinationInfoCard.vue index 6489999..e166731 100644 --- a/src/components/DestinationInfoCard.vue +++ b/src/components/DestinationInfoCard.vue @@ -37,7 +37,7 @@ {{nearestStructureData.lon}} , {{nearestStructureData.lat}} - + @@ -254,7 +254,7 @@ export default { if (this.isLocationRequested && !this.userLocation) { return 'Requesting location...'; } else if (this.userLocation) { - return `${this.userLocation.lat.toFixed(6)}, ${this.userLocation.lon.toFixed(6)}`; + return `${this.userLocation.lon.toFixed(6)}, ${this.userLocation.lat.toFixed(6)}`; } return 'Location not available'; }, diff --git a/src/views/Favorite.vue b/src/views/Favorite.vue index 7146f57..521fe44 100644 --- a/src/views/Favorite.vue +++ b/src/views/Favorite.vue @@ -1,63 +1,58 @@ - - - - - \ No newline at end of file +}; + + +