mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
fix: typos and improve naming conventions: (#8687)
This commit is contained in:
@@ -334,9 +334,9 @@ export const useChat = (
|
||||
const newChatList = produce(chatListRef.current, (draft) => {
|
||||
const index = draft.findIndex(item => item.id === responseItem.id)
|
||||
if (index !== -1) {
|
||||
const requestion = draft[index - 1]
|
||||
const question = draft[index - 1]
|
||||
draft[index - 1] = {
|
||||
...requestion,
|
||||
...question,
|
||||
}
|
||||
draft[index] = {
|
||||
...draft[index],
|
||||
|
||||
@@ -88,7 +88,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
|
||||
})
|
||||
}
|
||||
|
||||
const imageTobase64ToBlob = (base64: string, type = 'image/png'): Blob => {
|
||||
const imageBase64ToBlob = (base64: string, type = 'image/png'): Blob => {
|
||||
const byteCharacters = atob(base64)
|
||||
const byteArrays = []
|
||||
|
||||
@@ -109,7 +109,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
|
||||
const shareImage = async () => {
|
||||
try {
|
||||
const base64Data = url.split(',')[1]
|
||||
const blob = imageTobase64ToBlob(base64Data, 'image/png')
|
||||
const blob = imageBase64ToBlob(base64Data, 'image/png')
|
||||
|
||||
await navigator.clipboard.write([
|
||||
new ClipboardItem({
|
||||
|
||||
@@ -424,7 +424,7 @@ Workflow applications offers non-session support and is ideal for translation, a
|
||||
/>
|
||||
<Row>
|
||||
<Col>
|
||||
Returns worklfow logs, with the first page returning the latest `{limit}` messages, i.e., in reverse order.
|
||||
Returns workflow logs, with the first page returning the latest `{limit}` messages, i.e., in reverse order.
|
||||
|
||||
### Query
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ export const useWorkflowRun = () => {
|
||||
draft.forEach((edge) => {
|
||||
edge.data = {
|
||||
...edge.data,
|
||||
_runned: false,
|
||||
_run: false,
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -292,7 +292,7 @@ export const useWorkflowRun = () => {
|
||||
const newEdges = produce(edges, (draft) => {
|
||||
draft.forEach((edge) => {
|
||||
if (edge.target === data.node_id && incomeNodesId.includes(edge.source))
|
||||
edge.data = { ...edge.data, _runned: true } as any
|
||||
edge.data = { ...edge.data, _run: true } as any
|
||||
})
|
||||
})
|
||||
setEdges(newEdges)
|
||||
@@ -416,7 +416,7 @@ export const useWorkflowRun = () => {
|
||||
const edge = draft.find(edge => edge.target === data.node_id && edge.source === prevNodeId)
|
||||
|
||||
if (edge)
|
||||
edge.data = { ...edge.data, _runned: true } as any
|
||||
edge.data = { ...edge.data, _run: true } as any
|
||||
})
|
||||
setEdges(newEdges)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user