diff --git a/src/pages/workouts/WorkoutItem.vue b/src/pages/workouts/WorkoutItem.vue index e740557..ce2314b 100644 --- a/src/pages/workouts/WorkoutItem.vue +++ b/src/pages/workouts/WorkoutItem.vue @@ -2,6 +2,7 @@

Tренировка

>([]); const workoutItem = ref(); const data = ref({}); const dzenLink = ref(""); +const dataKey = ref(0); const initWorkout = (id: string) => { GetWorkout(`/api/v0/workouts/${id}`) @@ -45,6 +47,7 @@ const initWorkout = (id: string) => { if (d.dzenLink != undefined) { dzenLink.value = d.dzenLink; } + dataKey.value++; }) .catch((_error: AxiosError) => { init({ diff --git a/src/pages/workouts/components/WorkoutItem.vue b/src/pages/workouts/components/WorkoutItem.vue index 9985270..85f8bd7 100644 --- a/src/pages/workouts/components/WorkoutItem.vue +++ b/src/pages/workouts/components/WorkoutItem.vue @@ -299,7 +299,7 @@

{{ config.title }} @@ -1127,9 +1127,6 @@ const workoutNP = computed(() => ); // Rebuilt per x-axis mode: labels switch between times and distances and // options get a fresh x-scale, so every canvas must remount on mode change. -const vpChartKey = computed(() => - workoutItem?.virtual_power != null ? "-vp" : "" -); const chartConfigs = computed>(() => { const labels = xAxisMode.value === "time" ? times : distances; const configs: Array = [];