Commit 4124d5eb8ab38a44a422db7987b2e920a225a53a
1 parent
8161fe21
完善生产各个状态多语言
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Common/CommonTable/colorInfo.jsx
| @@ -5,7 +5,7 @@ import styles from "./index.less"; | @@ -5,7 +5,7 @@ import styles from "./index.less"; | ||
| 5 | export default class ColorInfo extends PureComponent { | 5 | export default class ColorInfo extends PureComponent { |
| 6 | colorContentItem = (item,language) => { | 6 | colorContentItem = (item,language) => { |
| 7 | 7 | ||
| 8 | - const title = item?.sName; | 8 | + const title =language ==='sEnglish'? item?.sEnglishName : language === 'sBig5'? item?.sBig5Name: item?.sName; |
| 9 | const info = Array.isArray(item?.sColor) ? item.sColor.filter(Boolean) : []; | 9 | const info = Array.isArray(item?.sColor) ? item.sColor.filter(Boolean) : []; |
| 10 | return ( | 10 | return ( |
| 11 | <> | 11 | <> |