<script>
const handleClick = (device) => {
if (device == "mobile") {
if (!inDesktop) {
handleControl();
}
} else {
if (inDesktop) {
handleControl();
}
}
};
const handleControl = ()=>{
}
</script>
<template>
<div class="center-box">
<div
@keydown.stop
spellcheck
contenteditable="true"
enterkeyhint="send"
placeholder="请输入"
/>
</div>
<button
@click="handleClick('pc')"
@touchend="handleClick('mobile')"
>
</button>
</template>