From b1a3e481f9938677ebced81161d84c4a10f655c6 Mon Sep 17 00:00:00 2001 From: artem Date: Mon, 30 Dec 2024 12:08:08 +0300 Subject: [PATCH] dzne link in public public --- src/pages/workouts/WorkoutPublicItem.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/workouts/WorkoutPublicItem.vue b/src/pages/workouts/WorkoutPublicItem.vue index bc993a7..63154a3 100644 --- a/src/pages/workouts/WorkoutPublicItem.vue +++ b/src/pages/workouts/WorkoutPublicItem.vue @@ -59,6 +59,10 @@
Максимальная скорость:
{{ speedConvert(workoutItem.max_speed || 0) }} км / ч
+
+
Ссылки на описание:
+
Дзен
+
@@ -117,6 +121,7 @@ const chart = ref(); let mapCenter = ref>([37.617644, 55.755819]); let lineCoordinates = ref>>([]); let currentCoordinates = ref | null>([]); +const dzenLink = ref(""); ChartJS.register( Title, Tooltip, @@ -279,6 +284,9 @@ const initWorkout = (id: string) => { datasets: datasets } + if (response.data.workout.external_links && response.data.workout.external_links.values) { + dzenLink.value = response.data.workout.external_links.values[0].value; + } }) .catch((error: any) => { console.log(error);