mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复ai对话节点下拉选滚轮事件
This commit is contained in:
parent
fd944c9b30
commit
ee1599874e
|
|
@ -25,6 +25,9 @@
|
|||
}"
|
||||
>
|
||||
<el-select
|
||||
@wheel="wheel"
|
||||
@keydown="isKeyDown = true"
|
||||
@keyup="isKeyDown = false"
|
||||
:teleported="false"
|
||||
v-model="chat_data.model_id"
|
||||
placeholder="请选择 AI 模型"
|
||||
|
|
@ -147,7 +150,15 @@ import { relatedObject } from '@/utils/utils'
|
|||
import type { Provider } from '@/api/type/model'
|
||||
|
||||
const { model } = useStore()
|
||||
|
||||
const isKeyDown = ref(false)
|
||||
const wheel = (e: any) => {
|
||||
if (isKeyDown.value) {
|
||||
e.preventDefault()
|
||||
} else {
|
||||
e.stopPropagation()
|
||||
return true
|
||||
}
|
||||
}
|
||||
const {
|
||||
params: { id }
|
||||
} = app.config.globalProperties.$route as any
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@
|
|||
}"
|
||||
>
|
||||
<el-select
|
||||
@wheel="wheel"
|
||||
@keydown="isKeyDown = true"
|
||||
@keyup="isKeyDown = false"
|
||||
:teleported="false"
|
||||
v-model="form_data.model_id"
|
||||
placeholder="请选择 AI 模型"
|
||||
|
|
@ -146,7 +149,15 @@ import useStore from '@/stores'
|
|||
import { relatedObject } from '@/utils/utils'
|
||||
import type { Provider } from '@/api/type/model'
|
||||
const { model } = useStore()
|
||||
|
||||
const isKeyDown = ref(false)
|
||||
const wheel = (e: any) => {
|
||||
if (isKeyDown.value) {
|
||||
e.preventDefault()
|
||||
} else {
|
||||
e.stopPropagation()
|
||||
return true
|
||||
}
|
||||
}
|
||||
const {
|
||||
params: { id }
|
||||
} = app.config.globalProperties.$route as any
|
||||
|
|
|
|||
Loading…
Reference in New Issue