mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-08-16 11:34:13 +08:00
Merge pull request #61 from JefferyHcool/fix/dependence
fix(noteForm):修复按钮点击无效
This commit is contained in:
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
@@ -21,7 +21,7 @@ import { useForm } from 'react-hook-form'
|
|||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
import { zodResolver } from '@hookform/resolvers/zod'
|
import { zodResolver } from '@hookform/resolvers/zod'
|
||||||
import { Info, Clock, Loader2 } from 'lucide-react'
|
import { Info, Clock, Loader2 } from 'lucide-react'
|
||||||
|
import { message } from 'antd'
|
||||||
import {
|
import {
|
||||||
Tooltip,
|
Tooltip,
|
||||||
TooltipContent,
|
TooltipContent,
|
||||||
@@ -156,7 +156,11 @@ const NoteForm = () => {
|
|||||||
}
|
}
|
||||||
const isGenerating = () => {
|
const isGenerating = () => {
|
||||||
console.log('🚀 isGenerating', getCurrentTask()?.status)
|
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) => {
|
const handleFileUpload = async (file: File, onSuccess: (url: string) => void) => {
|
||||||
if (!file) return
|
if (!file) return
|
||||||
@@ -245,6 +249,7 @@ const NoteForm = () => {
|
|||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectItem value="bilibili">哔哩哔哩</SelectItem>
|
<SelectItem value="bilibili">哔哩哔哩</SelectItem>
|
||||||
<SelectItem value="youtube">Youtube</SelectItem>
|
<SelectItem value="youtube">Youtube</SelectItem>
|
||||||
|
{/*<SelectItem value="douyin">抖音</SelectItem>*/}
|
||||||
<SelectItem value="local">本地视频</SelectItem>
|
<SelectItem value="local">本地视频</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
|
|||||||
Reference in New Issue
Block a user