fix: if emoji is not set set random emoji
This commit is contained in:
parent
51c5af1f64
commit
fa93cacd9e
@ -66,7 +66,7 @@
|
||||
<script setup>
|
||||
import { gemoji } from 'gemoji'
|
||||
import { Popover } from 'frappe-ui'
|
||||
import { ref, computed } from 'vue'
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
|
||||
const search = ref('')
|
||||
const emoji = defineModel()
|
||||
@ -109,5 +109,9 @@ function randomInt(min, max) {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (!emoji.value) setRandom()
|
||||
})
|
||||
|
||||
defineExpose({ setRandom })
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user