mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-16 16:37:35 +08:00
fix(noteForm):修复按钮点击无效
This commit is contained in:
@@ -21,7 +21,7 @@ import { useForm } from 'react-hook-form'
|
||||
import { z } from 'zod'
|
||||
import { zodResolver } from '@hookform/resolvers/zod'
|
||||
import { Info, Clock, Loader2 } from 'lucide-react'
|
||||
|
||||
import { message } from 'antd'
|
||||
import {
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
@@ -156,7 +156,11 @@ const NoteForm = () => {
|
||||
}
|
||||
const isGenerating = () => {
|
||||
console.log('🚀 isGenerating', getCurrentTask()?.status)
|
||||
return getCurrentTask()?.status != 'SUCCESS' && getCurrentTask()?.status != 'FAILED' && getCurrentTask()?.status != undefined
|
||||
return (
|
||||
getCurrentTask()?.status != 'SUCCESS' &&
|
||||
getCurrentTask()?.status != 'FAILED' &&
|
||||
getCurrentTask()?.status != undefined
|
||||
)
|
||||
}
|
||||
const handleFileUpload = async (file: File, onSuccess: (url: string) => void) => {
|
||||
if (!file) return
|
||||
@@ -245,6 +249,7 @@ const NoteForm = () => {
|
||||
<SelectContent>
|
||||
<SelectItem value="bilibili">哔哩哔哩</SelectItem>
|
||||
<SelectItem value="youtube">Youtube</SelectItem>
|
||||
{/*<SelectItem value="douyin">抖音</SelectItem>*/}
|
||||
<SelectItem value="local">本地视频</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
|
||||
Reference in New Issue
Block a user