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

This commit is contained in:
Ariel Leyva authored and GitHub committed 2025-12-13 09:09:05 +01:00
1 parent 6d4c867672
commit cf966578d8
1 file changed
+4 -1
+4 -1
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();