Compare commits
No commits in common. "fc368bcd1a5009ef719f2bc9a8ab7be979a4e8da" and "7121e57cbb625006a05f4b1b8f6cc9589c656044" have entirely different histories.
fc368bcd1a
...
7121e57cbb
|
@ -14,7 +14,6 @@ Homestead.json
|
||||||
.vagrant/
|
.vagrant/
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
/storage/temp/
|
/storage/temp/
|
||||||
/storage/debugbar/
|
|
||||||
|
|
||||||
# User data files
|
# User data files
|
||||||
/data/
|
/data/
|
||||||
|
|
|
@ -119,10 +119,6 @@ class MemberResource extends JsonResource
|
||||||
*/
|
*/
|
||||||
public static function meta(): array
|
public static function meta(): array
|
||||||
{
|
{
|
||||||
if (request()->header('X-Meta') === 'false') {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (request()->header('X-Inertia-Partial-Data', '') !== '' && !str_contains(request()->header('X-Inertia-Partial-Data', ''), 'meta')) {
|
if (request()->header('X-Inertia-Partial-Data', '') !== '' && !str_contains(request()->header('X-Inertia-Partial-Data', ''), 'meta')) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,17 +66,13 @@ export default {
|
||||||
this.search.s = event;
|
this.search.s = event;
|
||||||
|
|
||||||
debounce(async () => {
|
debounce(async () => {
|
||||||
var response = await this.axios.post(
|
var response = await this.axios.post('/api/member/search', {
|
||||||
'/api/member/search',
|
|
||||||
{
|
|
||||||
filter: {
|
filter: {
|
||||||
search: event,
|
search: event,
|
||||||
hasBirthday: true,
|
hasBirthday: true,
|
||||||
hasFullAddress: true,
|
hasFullAddress: true,
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
{ headers: { 'X-Meta': 'false' } }
|
|
||||||
);
|
|
||||||
|
|
||||||
this.search.results = response.data.data;
|
this.search.results = response.data.data;
|
||||||
}, 300)();
|
}, 300)();
|
||||||
|
|
Loading…
Reference in New Issue