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/pc/createview/index.jsx | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pc/createview/index.jsx b/src/pc/createview/index.jsx index 45f3a0f..44c6198 100644 --- a/src/pc/createview/index.jsx +++ b/src/pc/createview/index.jsx @@ -4,8 +4,6 @@ import { Button, Modal, notification } from 'antd' import moment from 'moment' -import zhCN from '@/locales/zh-CN/model.js' -import enUS from '@/locales/en-US/model.js' import Utils from '@/utils/utils.js' import MenuUtils from '@/utils/utils-custom.js' import SettingForm from './settingform' @@ -18,7 +16,6 @@ } state = { - dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, visible: false, loading: false } @@ -206,7 +203,7 @@ render () { const { config } = this.props - const { visible, dict, loading } = this.state + const { visible, loading } = this.state return ( <div className="create-view"> @@ -216,14 +213,13 @@ visible={visible} width={600} maskClosable={false} - okText={dict['model.submit']} + okText="鎻愪氦" onOk={this.verifySubmit} onCancel={() => { this.setState({ visible: false }) }} confirmLoading={loading} destroyOnClose > <SettingForm - dict={dict} config={config} wrappedComponentRef={(inst) => this.verifyRef = inst} /> -- Gitblit v1.8.0