From 95db8a369c01a1f9f2d3b0015d11377244cb30f9 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 21 Jan 2026 15:46:27 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A4=8D=E5=88=B6=E4=BA=A7=E5=93=81:?= =?UTF-8?q?=20=E5=BF=85=E9=80=89=E7=B1=BB=E5=9E=8B/=E4=BA=A7=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/common.json | 1 + public/locales/zh/common.json | 1 + src/components/ProductsTypesSelector.jsx | 2 +- src/views/products/Detail/CopyProducts.jsx | 8 ++++---- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 45db10e..054c672 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -37,6 +37,7 @@ "Success": "Success", "Failed": "Failed", "All": "All", + "Select": "Select", "Table": { "Total": "Total {{total}} items" }, diff --git a/public/locales/zh/common.json b/public/locales/zh/common.json index 2004506..579f7cd 100644 --- a/public/locales/zh/common.json +++ b/public/locales/zh/common.json @@ -37,6 +37,7 @@ "Success": "成功", "Failed": "失败", "All": "所有", + "Select": "选择", "Table": { "Total": "共 {{total}} 条" }, diff --git a/src/components/ProductsTypesSelector.jsx b/src/components/ProductsTypesSelector.jsx index 6c719fe..7de4797 100644 --- a/src/components/ProductsTypesSelector.jsx +++ b/src/components/ProductsTypesSelector.jsx @@ -3,7 +3,7 @@ import { useProductsTypes } from '@/hooks/useProductsSets'; import { useTranslation } from 'react-i18next'; const ProductsTypesSelector = ({...props}) => { - const productsTypes = useProductsTypes(); + const productsTypes = useProductsTypes(true); const { t } = useTranslation(); return ( <> diff --git a/src/views/products/Detail/CopyProducts.jsx b/src/views/products/Detail/CopyProducts.jsx index c0cb210..c2df596 100644 --- a/src/views/products/Detail/CopyProducts.jsx +++ b/src/views/products/Detail/CopyProducts.jsx @@ -52,13 +52,13 @@ export const CopyProductsForm = ({ action, initialValues, onFormInstanceReady, s -