feat: 对话框焦点问题

This commit is contained in:
wangdan-fit2cloud 2023-12-04 18:02:00 +08:00
parent 95d46388d2
commit 250a19e247

View File

@ -97,6 +97,7 @@
<div class="ai-dialog__operate p-24">
<div class="operate-textarea flex">
<el-input
ref="quickInputRef"
v-model="inputValue"
type="textarea"
placeholder="请输入"
@ -135,11 +136,11 @@ const props = defineProps({
})
const { application } = useStore()
const quickInputRef = ref()
const scrollDiv = ref()
const dialogScrollbar = ref()
const loading = ref(false)
const inputValue = ref('')
const problem_text = ref('') //
const chartOpenId = ref('')
const chatList = ref<chatType[]>([])
@ -149,6 +150,9 @@ const isDisabledChart = computed(
function quickProblemHandel(val: string) {
inputValue.value = val
nextTick(() => {
quickInputRef.value?.focus()
})
}
function sendChatHandle(event: any) {