fix #21 - pdf viewer : open comment panel when url query contains comments

This commit is contained in:
isUnknown 2024-11-27 15:26:30 +01:00
parent 684eb97bff
commit 53b637c596

View file

@ -78,7 +78,10 @@ const isOpen = ref(true);
watch(isOpen, (newValue) => {
router.push({ name: route.name });
});
const isCommentsOpen = ref(route.query.comments ? true : false);
console.log(route.query);
const isCommentsOpen = ref(
route.query.hasOwnProperty("comments") ? true : false
);
const currentPageIndex = ref(1);
watch(isCommentsOpen, (newVal) => {