mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-04 10:14:00 +08:00
chore(web): migrate lodash-es to es-toolkit compat (#30126)
This commit is contained in:
@@ -18,7 +18,7 @@ import type {
|
||||
ProcessRuleResponse,
|
||||
} from '@/models/datasets'
|
||||
import { useMutation } from '@tanstack/react-query'
|
||||
import groupBy from 'lodash-es/groupBy'
|
||||
import { groupBy } from 'es-toolkit/compat'
|
||||
import { post } from '../base'
|
||||
import { createDocument, createFirstDocument, fetchDefaultProcessRule, fetchFileIndexingEstimate } from '../datasets'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { FlowType } from '@/types/common'
|
||||
import { curry } from 'lodash-es'
|
||||
import { curry } from 'es-toolkit/compat'
|
||||
import {
|
||||
useDeleteAllInspectorVars as useDeleteAllInspectorVarsInner,
|
||||
useDeleteInspectVar as useDeleteInspectVarInner,
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
useQuery,
|
||||
useQueryClient,
|
||||
} from '@tanstack/react-query'
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
import { cloneDeep } from 'es-toolkit/compat'
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import useRefreshPluginList from '@/app/components/plugins/install-plugin/hooks/use-refresh-plugin-list'
|
||||
import { getFormattedPlugin } from '@/app/components/plugins/marketplace/utils'
|
||||
|
||||
Reference in New Issue
Block a user