This commit is contained in:
StyleZhang
2024-03-15 16:58:29 +08:00
parent 75b332695b
commit e98456b025
16 changed files with 209 additions and 176 deletions

View File

@ -4,7 +4,10 @@ import {
useCallback,
} from 'react'
import { useTranslation } from 'react-i18next'
import { useStore } from '../store'
import {
useStore,
useWorkflowStore,
} from '../store'
import {
useIsChatMode,
useWorkflowRun,
@ -20,6 +23,7 @@ import { useStore as useAppStore } from '@/app/components/app/store'
const Header: FC = () => {
const { t } = useTranslation()
const workflowStore = useWorkflowStore()
const appDetail = useAppStore(s => s.appDetail)
const appSidebarExpand = useAppStore(s => s.appSidebarExpand)
const isChatMode = useIsChatMode()
@ -30,8 +34,8 @@ const Header: FC = () => {
if (runningStatus)
return
useStore.setState({ showFeaturesPanel: true })
}, [runningStatus])
workflowStore.setState({ showFeaturesPanel: true })
}, [runningStatus, workflowStore])
const handleGoBackToEdit = useCallback(() => {
handleRunSetting(true)