diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 218e28600..3c1a4c8a5 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -60,7 +60,7 @@ const emit = defineEmits(['refresh', 'clear', 'search', 'init', 'remove']); const arrayData = useArrayData($props.dataKey, { exprBuilder: $props.exprBuilder, searchUrl: $props.searchUrl, - navigate: {}, + navigate: $props.redirect ? {} : null, }); const route = useRoute(); const store = arrayData.store; diff --git a/src/components/ui/VnNotes.vue b/src/components/ui/VnNotes.vue index 937ec4b6c..f4cdde310 100644 --- a/src/components/ui/VnNotes.vue +++ b/src/components/ui/VnNotes.vue @@ -21,7 +21,7 @@ const currentUser = ref(state.getUser()); const newNote = ref(''); const vnPaginateRef = ref(); function handleKeyUp(event) { - if (event.key === 'Enter') { + if (event.key === 'Enter') { event.preventDefault(); if (!event.shiftKey) insert(); } @@ -78,6 +78,7 @@ async function insert() { ref="vnPaginateRef" class="show" v-bind="$attrs" + search-url="notes" >