From e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 17 十月 2022 17:57:34 +0800 Subject: [PATCH] 2022-10-17 --- src/templates/zshare/editcomponent/index.jsx | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/templates/zshare/editcomponent/index.jsx b/src/templates/zshare/editcomponent/index.jsx index 3029835..59ef92f 100644 --- a/src/templates/zshare/editcomponent/index.jsx +++ b/src/templates/zshare/editcomponent/index.jsx @@ -8,8 +8,6 @@ import Utils from '@/utils/utils.js' import PasteForm from '@/templates/zshare/pasteform' import TransferForm from '@/templates/zshare/basetransferform' -import zhCN from '@/locales/zh-CN/model.js' -import enUS from '@/locales/en-US/model.js' import MKEmitter from '@/utils/events.js' import './index.scss' @@ -23,7 +21,6 @@ } state = { - dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, thawVisible: false, thawbtnlist: null, pasteVisible: false, @@ -88,13 +85,13 @@ */ thawBtnSubmit = () => { const { thawButtons } = this.props - const { thawbtnlist, dict, targetKeys } = this.state + const { thawbtnlist, targetKeys } = this.state let config = fromJS(this.props.config).toJS() if (targetKeys.length === 0) { notification.warning({ top: 92, - message: dict['form.required.select'] + '瑙e喕鎸夐挳', + message: '璇烽�夋嫨瑙e喕鎸夐挳', duration: 5 }) } else { @@ -200,12 +197,11 @@ render() { const { MenuID } = this.props - const { dict } = this.state return ( <div style={{display: 'inline-block'}}> {MenuID ? <Button className="mk-border-green" onClick={this.handleThaw}><UnlockOutlined /> 瑙e喕鎸夐挳</Button> : null} - <Button style={{borderColor: '#40a9ff', color: '#40a9ff'}} onClick={() => this.setState({pasteVisible: true})}><SnippetsOutlined /> {dict['header.form.paste']}</Button> + <Button style={{borderColor: '#40a9ff', color: '#40a9ff'}} onClick={() => this.setState({pasteVisible: true})}><SnippetsOutlined /> 绮樿创</Button> {/* 瑙e喕鎸夐挳妯℃�佹 */} <Modal title="瑙e喕鎸夐挳" @@ -219,7 +215,7 @@ </Modal> {/* 鎸夐挳閰嶇疆淇℃伅绮樿创澶嶅埗 */} <Modal - title={dict['header.form.paste']} + title="绮樿创" visible={this.state.pasteVisible} width={600} maskClosable={false} -- Gitblit v1.8.0