feat: 对话框焦点问题
This commit is contained in:
parent
95d46388d2
commit
250a19e247
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user