fix: hide the context menu when changing the route

This commit is contained in:
ArielLeyva 2025-12-09 16:04:01 -05:00
parent 849f5ad443
commit b000578a4f

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();