mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-22 18:27:42 +00:00
fix: hide the context menu when changing the route (#5613)
This commit is contained in:
parent
6d4c867672
commit
cf966578d8
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue