From 8161fe21eb2532c6632507fa166fad0590b71957 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Sat, 21 Jun 2025 21:49:18 +0800 Subject: [PATCH] 1.完善主页的英文翻译 --- src/components/Common/PersonCenter/MenuSearchPopovor.js | 5 ++++- src/components/Common/PersonCenter/PersonCenter.js | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/Common/PersonCenter/MenuSearchPopovor.js b/src/components/Common/PersonCenter/MenuSearchPopovor.js index 2d9d234..6934232 100644 --- a/src/components/Common/PersonCenter/MenuSearchPopovor.js +++ b/src/components/Common/PersonCenter/MenuSearchPopovor.js @@ -6,6 +6,7 @@ import { Modal, message } from 'antd-v4'; import { AutoComplete, Input } from "antd-v4"; import * as commonUtils from "@/utils/utils"; /* 通用方法 */ import config from '@/utils/config'; +import * as commonFunc from "@/components/Common/commonFunc"; const MenuSearchPopovor = props => { const { menuPanel, onSetMenuSearchPopoverVisible, onAddPane, app, dispatch, updateMenuPanel } = useMemo( @@ -141,6 +142,8 @@ const MenuSearchPopovor = props => { return [...commonlyUsedOption, ...options]; }, [menuPanel.panelMenus]); + const searchTitle = commonFunc.showMessage(app.commonConst, 'btnSearch') || '搜索122'; + return (
{ onSetMenuSearchPopoverVisible(false); }} > - +
); diff --git a/src/components/Common/PersonCenter/PersonCenter.js b/src/components/Common/PersonCenter/PersonCenter.js index 92ee6a1..64f132c 100644 --- a/src/components/Common/PersonCenter/PersonCenter.js +++ b/src/components/Common/PersonCenter/PersonCenter.js @@ -63,7 +63,9 @@ class PersonCenter extends Component { } componentDidMount() { if (this.changePwd) { - message.warn('系统判断密码为初始密码,请修改密码后再操作!', 10); + const changePwd = commonFunc.showLocalMessage(this.props, 'changePwd', '系统判断密码为初始密码,2请修改密码后再操作!'); + + message.warn(changePwd, 10); } } -- libgit2 0.22.2