We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad5ddc commit 17532a0Copy full SHA for 17532a0
generator/templates/Crud/src/components/Resource.vue
@@ -131,13 +131,19 @@ export default {
131
sorting.sortBy = sortBy[0];
132
sorting.desc = sortDesc[0] ? 1 : 0;
133
}
134
+
135
+ const params = {
136
+ page: page,
137
+ perPage: itemsPerPage,
138
+ ...sorting,
139
+ };
140
141
+ if (search) {
142
+ params.search = search;
143
+ }
144
145
axios.get(this.resourceUri, {
- params: {
- search: search || undefined,
- page: page,
- perPage: itemsPerPage,
- ...sorting,
- },
146
+ params: params,
147
})
148
.then((response) => {
149
const items = this.mapDataResponse(response.data.data);
0 commit comments