Compare commits
2 Commits
7121e57cbb
...
fc368bcd1a
Author | SHA1 | Date |
---|---|---|
|
fc368bcd1a | |
|
972b1845ed |
|
@ -14,6 +14,7 @@ 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,6 +119,10 @@ 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 [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<button v-for="(compiler, index) in compilers" class="btn btn-primary mt-3 inline-block" @click.prevent="
|
<button v-for="(compiler, index) in compilers" class="btn btn-primary mt-3 inline-block" @click.prevent="
|
||||||
values.type = compiler.class;
|
values.type = compiler.class;
|
||||||
submit();
|
submit();
|
||||||
" v-text="compiler.title"></button>
|
" v-text="compiler.title"></button>
|
||||||
</form>
|
</form>
|
||||||
</page-layout>
|
</page-layout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -66,13 +66,17 @@ export default {
|
||||||
this.search.s = event;
|
this.search.s = event;
|
||||||
|
|
||||||
debounce(async () => {
|
debounce(async () => {
|
||||||
var response = await this.axios.post('/api/member/search', {
|
var response = await this.axios.post(
|
||||||
filter: {
|
'/api/member/search',
|
||||||
search: event,
|
{
|
||||||
hasBirthday: true,
|
filter: {
|
||||||
hasFullAddress: true,
|
search: event,
|
||||||
|
hasBirthday: 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