From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 十二月 2022 15:53:32 +0800 Subject: [PATCH] 2022-12-09 --- src/templates/zshare/editcomponent/index.jsx | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/templates/zshare/editcomponent/index.jsx b/src/templates/zshare/editcomponent/index.jsx index f26d9e3..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} @@ -227,7 +223,7 @@ onCancel={() => {this.setState({pasteVisible: false})}} destroyOnClose > - <PasteForm wrappedComponentRef={(inst) => this.pasteFormRef = inst}/> + <PasteForm wrappedComponentRef={(inst) => this.pasteFormRef = inst} inputSubmit={this.pasteSubmit}/> </Modal> </div> ) -- Gitblit v1.8.0