forked from FoundKeyGang/FoundKey
client: fix lints in about.emojis.vue
This commit is contained in:
parent
356d226171
commit
c608f0b4c2
1 changed files with 3 additions and 3 deletions
|
@ -33,14 +33,14 @@ import { emojiCategories, instance } from '@/instance';
|
||||||
let q: string = $ref('');
|
let q: string = $ref('');
|
||||||
let searchEmojis: null | Record<string, any>[] = $ref(null);
|
let searchEmojis: null | Record<string, any>[] = $ref(null);
|
||||||
|
|
||||||
function search() {
|
function search(): void {
|
||||||
if (q === '') {
|
if (q === '') {
|
||||||
searchEmojis = null;
|
searchEmojis = null;
|
||||||
} else {
|
} else {
|
||||||
searchEmojis = instance.emojis.filter(emoji => emoji.name.includes(this.q) || emoji.aliases.includes(this.q));
|
searchEmojis = instance.emojis.filter(emoji => emoji.name.includes(q) || emoji.aliases.includes(q));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
watch(q, search);
|
watch($$(q), search);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in a new issue