fix #21 - pdf viewer : open comment panel when url query contains comments
This commit is contained in:
parent
684eb97bff
commit
53b637c596
1 changed files with 4 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue