docs(components): [mention] example error (#17760)

This commit is contained in:
赵添 2024-08-05 10:20:39 +08:00 committed by GitHub
parent 707e0c9f00
commit f5c6310d93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onBeforeMount, ref } from 'vue' import { onBeforeUnmount, ref } from 'vue'
import type { MentionOption } from 'element-plus' import type { MentionOption } from 'element-plus'
const value = ref('') const value = ref('')
@ -33,7 +33,7 @@ const handleSearch = (pattern: string) => {
}, 1500) }, 1500)
} }
onBeforeMount(() => { onBeforeUnmount(() => {
if (timer) clearTimeout(timer) if (timer) clearTimeout(timer)
}) })
</script> </script>