From b9fbddbc4990f5b9854d82190a5fa0ce9fc601ed Mon Sep 17 00:00:00 2001 From: sige Date: Sat, 25 May 2024 09:09:17 +0800 Subject: [PATCH] nnn --- src/components/MyInput.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MyInput.vue b/src/components/MyInput.vue index c018056..d8fc630 100644 --- a/src/components/MyInput.vue +++ b/src/components/MyInput.vue @@ -65,10 +65,11 @@ async function actionInputClick() { } // 键盘输入 -function actionKeyBoardInput(val) { +async function actionKeyBoardInput(val) { if (isFirstClick.value) { - setTimeout(() => value.value = val + ''); isFirstClick.value = false + await nextTick(); + value.value = val + ''; } }