Skip to content

Commit

Permalink
fix buggy refresh (patch) (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaaax committed Feb 10, 2025
1 parent a948b79 commit 4e531ae
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions confiture-web-app/src/pages/audit/AuditGenerationPage.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { type Component, computed, onBeforeUnmount, ref, watch } from "vue";
import { onBeforeRouteLeave, useRoute, useRouter } from "vue-router";
import { onBeforeRouteLeave, useRoute } from "vue-router";
import AraTabs from "../../components/audit/AraTabs.vue";
import AuditGenerationFilters from "../../components/audit/AuditGenerationFilters.vue";
Expand All @@ -19,7 +19,6 @@ import { AuditPage, AuditType, CriteriumResultStatus } from "../../types";
import { pluralize, slugify } from "../../utils";
const route = useRoute();
const router = useRouter();
const uniqueId = computed(() => route.params.uniqueId as string);
const auditStore = useAuditStore();
Expand Down Expand Up @@ -89,17 +88,17 @@ function updateCurrentPageId(tabIndex: number) {
);
// change the URL in the browser adress bar without triggering vue-router navigation
history.pushState(
{},
"null",
router.resolve({
name: "audit-generation",
params: {
uniqueId: uniqueId.value,
tab: slugify(tabsData.value[tabIndex].label)
}
}).fullPath
);
// history.pushState(
// {},
// "null",
// router.resolve({
// name: "audit-generation",
// params: {
// uniqueId: uniqueId.value,
// tab: slugify(tabsData.value[tabIndex].label)
// }
// }).fullPath
// );
}
const {
Expand Down

0 comments on commit 4e531ae

Please sign in to comment.