mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
app switch
This commit is contained in:
@ -38,7 +38,7 @@ const RunPanel: FC<RunProps> = ({ activeTab, runID }) => {
|
||||
{/* panel detal */}
|
||||
<div className={cn('grow bg-white h-0 overflow-y-auto', currentTab === 'TRACING' && '!bg-gray-50')}>
|
||||
{currentTab === 'RESULT' && <Result runID={runID} />}
|
||||
{currentTab === 'TRACING' && <Tracing />}
|
||||
{currentTab === 'TRACING' && <Tracing runID={runID} />}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
'use client'
|
||||
import type { FC } from 'react'
|
||||
import React, { useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
// import { useTranslation } from 'react-i18next'
|
||||
// import cn from 'classnames'
|
||||
import { BlockEnum } from '../types'
|
||||
import NodePanel from './node'
|
||||
|
||||
type TracingProps = {
|
||||
// appId: string
|
||||
runID: string
|
||||
}
|
||||
|
||||
const nodeInfoFake = {
|
||||
@ -18,8 +18,8 @@ const nodeInfoFake = {
|
||||
status: 'succeeded',
|
||||
}
|
||||
|
||||
const Tracing: FC<TracingProps> = () => {
|
||||
const { t } = useTranslation()
|
||||
const Tracing: FC<TracingProps> = ({ runID }) => {
|
||||
// const { t } = useTranslation()
|
||||
const [nodeCollapsed, setCurrentTab] = useState<boolean>(false)
|
||||
|
||||
const collapseStateChange = () => {
|
||||
|
||||
Reference in New Issue
Block a user