自动聚焦尝试处理没用
This commit is contained in:
@@ -143,6 +143,9 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
currentConversation(v) {
|
currentConversation(v) {
|
||||||
v && this.getHistory({conversationId: v})
|
v && this.getHistory({conversationId: v})
|
||||||
|
},
|
||||||
|
loading(v) {
|
||||||
|
!v && this.$nextTick(() => this.$refs.sendInput.focus())
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -192,7 +195,7 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex end">
|
<div class="flex end">
|
||||||
<el-input type="textarea" class="fill input" autosize resize="none" v-model="prompt" placeholder="请输入..." :rows="5"
|
<el-input type="textarea" class="fill input" autosize resize="none" v-model="prompt" placeholder="请输入..." :rows="5"
|
||||||
@keydown.native="handleHotkey" :disabled="loading" :placeholder="loading?'正在思考中...':'请输入'"/>
|
@keydown.native="handleHotkey" :disabled="loading" :placeholder="loading?'正在思考中...':'请输入'" ref="sendInput"/>
|
||||||
<div class="sendBtn" @click="handleSend"/>
|
<div class="sendBtn" @click="handleSend"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user