Skip to content

Commit 26f174f

Browse files
committed
Fixed permission search field value display
1 parent ffc9415 commit 26f174f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/Http/Controllers/Admin/PermissionController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function index()
4747

4848
return Inertia::render('Admin/Permission/Index', [
4949
'permissions' => $permissions,
50+
'filters' => request()->all('search'),
5051
]);
5152
}
5253

resources/js/Pages/Admin/Permission/Index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ const props = defineProps({
99
type: Object,
1010
default: () => ({}),
1111
},
12+
filters: {
13+
type: Object,
14+
default: () => ({}),
15+
},
1216
})
1317
1418
const form = useForm({
15-
search: null,
19+
search: props.filters.search,
1620
})
1721
1822
const formDelete = useForm({})

0 commit comments

Comments
 (0)