Skip to content

Commit

Permalink
Add event for pushState
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Aug 8, 2024
1 parent 19c09fd commit 6d11a76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/AutoQueryGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ const props = withDefaults(defineProps<{
const emit = defineEmits<{
(e: "headerSelected", name:string, ev:Event): void
(e: "rowSelected", item:any, ev:Event): void
(e: "pushState", args:any): void
}>()
const client = inject<JsonServiceClient>('client')!
Expand Down Expand Up @@ -372,6 +373,7 @@ function canFilter(column:string) {
}
function updateUrl(args:Record<string,any>) {
emit('pushState', args)
if (!allow('queryString')) return
pushState(args)
}
Expand Down

0 comments on commit 6d11a76

Please sign in to comment.