mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
chore: perfect type definition (#1003)
This commit is contained in:
@@ -95,8 +95,8 @@ export default function AccountSetting({
|
||||
]
|
||||
const scrollRef = useRef<HTMLDivElement>(null)
|
||||
const [scrolled, setScrolled] = useState(false)
|
||||
const scrollHandle = (e: any) => {
|
||||
if (e.target.scrollTop > 0)
|
||||
const scrollHandle = (e: Event) => {
|
||||
if ((e.target as HTMLDivElement).scrollTop > 0)
|
||||
setScrolled(true)
|
||||
|
||||
else
|
||||
|
||||
@@ -9,7 +9,7 @@ import Button from '@/app/components/base/button'
|
||||
type CardProps = {
|
||||
providerType: ProviderEnum
|
||||
models: Model[]
|
||||
onOpenModal: (v: any) => void
|
||||
onOpenModal: (v: Omit<Model, 'config'> & Model['config']) => void
|
||||
onOperate: (v: Record<string, any>) => void
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user