fix: hide the context menu when changing the route (#5613)

This commit is contained in:
Ariel Leyva
2025-12-13 03:09:05 -05:00
committed by GitHub
parent 6d4c867672
commit cf966578d8

View File

@@ -356,7 +356,7 @@ import {
ref,
watch,
} from "vue";
import { useRoute } from "vue-router";
import { useRoute, onBeforeRouteUpdate } from "vue-router";
import { useI18n } from "vue-i18n";
import { storeToRefs } from "pinia";
import { removePrefix } from "@/api/utils";
@@ -379,6 +379,9 @@ const layoutStore = useLayoutStore();
const { req } = storeToRefs(fileStore);
const route = useRoute();
onBeforeRouteUpdate(() => {
hideContextMenu();
});
const { t } = useI18n();