wenliming 3 лет назад
Родитель
Сommit
603463f17f
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/view/components/follow-input.vue

+ 4 - 1
src/view/components/follow-input.vue

@@ -149,7 +149,10 @@ const addUser = (name = '') => {
 const addInput = () => {
     addUser('');
     setTimeout(() => {
-        setIptWidth(props.atUserList.length - 1);
+        let index = props.atUserList.length - 1;
+        setIptWidth(index);
+        let iptDom = document.getElementById('input'+index);
+        iptDom.focus();
     })
 }